Chome 102:已被CORS策略所阻止:请求的Targe IP地址空间为未知'但是资源位于地址空间中。

发布于 2025-02-03 07:24:09 字数 561 浏览 5 评论 0原文

我们有一个基于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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文