Chome 102:已被CORS策略所阻止:请求的Targe IP地址空间为未知'但是资源位于地址空间中。
我们有一个基于Web的系统托管在LAN(非SSL)中。 在Chrome 102(Windows/Ubuntu)中,我们面临一个随机的CORS问题,形容为
已被CORS策略阻止:请求有一个TARGE IP地址空间 “未知”的资源在地址空间“私人”
,我还附加了图片:
问题并非总是发生,有时候我们刷新Chrome之后还可以。 但是有时会发生在其他资源文件上,例如CSS或JS。
我们不知道为什么在192.168.1.168:8888上使用的网页使用“脚本”和“链接”标签对fetch .js/.css(也存在于192.168.1.168:8888)有时会触发此问题。
“访问控制”标头在后端代码中设置为“*”。 这个问题困扰着我们,有人知道我们可以采取任何行动来解决问题吗?
We have a web-based system hosted in the LAN (non-SSL).
From Chrome 102 (Windows/Ubuntu), we face a randomly CORS issue which describes as
has been blocked by CORS policy: Request had a targe IP address space
of 'unknown' yet the resource is in address space 'private'
and I also attach the picture:
The issue is not always happen, sometimes it is ok after we refresh Chrome.
But sometimes it occur on other resource file, like css or js.
We do not know why a web page on 192.168.1.168:8888 uses "script" and "link" tag to fetch .js/.css (also existed on 192.168.1.168:8888) will trigger this issue sometimes.
The "Access-Control-Allow-Origin" header are set as "*" in the backend code.
This problem bothers us so much, does anyone know any action we can do to solve issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论