has been blocked by CORS policy: The request client is not a secure context and the resource is ...

该报错原因为:Chrome浏览器禁止外部请求访问本地,被CORS策略阻止
解决方案:
1、打开chrome的设置: chrome://flags/#block-insecure-private-network-requests
2、将 Block insecure private network requests 设置为 Disabled
原文链接:https://blog.csdn.net/khadijiah/article/details/128820963

posted @ 2023-06-27 21:27  yyzyyzyyz  阅读(3120)  评论(0编辑  收藏  举报