问题描述
Access to XMLHttpRequest at 'http://192.168.1.58:8182/sockjs-node/info?t=1672991799369' from origin 'http://60.28.13.253:8182' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `private`. |
原因
前后端分离的(vue+springboot)项目,内网做了穿透到外网,通过外网地址访问axios请求,产生校验问题
请求客户端不是安全上下文,资源位于更私密的地址空间“private”中。
解决方法
在谷歌浏览器地址栏输入:chrome://flags/#block-insecure-private-network-requests