赞
踩
报错
xxx/#/dashboard?from=back:1 Access to script at 'http://192.168.1.7:8080/static/js/plt.sdk.xxx.js' from origin 'http://xxx.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `private`.
通过修改 chrome 配置来避免
1、打开 tab 页面 chrome://flags/#block-insecure-private-network-requests
2、将其 Block insecure private network requests 设置为 Disabled, 然后重启就行了, 这样子就相当于把这个功能禁用掉
参照:https://kebingzao.com/2021/10/11/chrome-private-cors-error/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。