Reason: CORS request not HTTP - HTTP 编辑
Reason
Reason: CORS request not HTTP
What went wrong?
CORS requests may only use the HTTPS URL scheme, but the URL specified by the request is of a different type. This often occurs if the URL specifies a local file, using a file:///
URL.
To fix this problem, make sure you use HTTPS URLs when issuing requests involving CORS, such as XMLHttpRequest
, Fetch APIs, Web Fonts (@font-face
), and WebGL textures, and XSL stylesheets.
Local File Security in Firefox 68
When a user opened a page using a file:///
URI in Firefox 67 and earlier, the origin of the page was defined as the directory from which the page was opened. Resources in the same directory and its subdirectories were treated as having the same origin for purposes of the CORS same-origin rule.
In response to CVE-2019-11730, Firefox 68 and later define the origin of a page opened using a file:///
URI as unique. Therefore, other resources in the same directory or its subdirectories no longer satisfy the CORS same-origin rule. This new behavior is enabled by default using the privacy.file_unique_origin
preference.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论