您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!
原因
原因:CROS被禁用
哪里错了?
发送了一个需要使用CORS的请求,但在用户的浏览器中禁用了CORS。发生这种情况时,用户需要在浏览器中重新打开CORS。
在Firefox中,禁用CORS的首选项是content.cors.disable
。将此设置为true
将禁用CORS,因此在这种情况下,CORS请求将始终因此错误而失败。
参见
- HTTP访问控制(CORS)错误
- Glossary: CORS
您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!
原因:CROS被禁用
发送了一个需要使用CORS的请求,但在用户的浏览器中禁用了CORS。发生这种情况时,用户需要在浏览器中重新打开CORS。
在Firefox中,禁用CORS的首选项是content.cors.disable
。将此设置为true
将禁用CORS,因此在这种情况下,CORS请求将始终因此错误而失败。
Accept
Accept-Charset
Accept-Encoding
Accept-Language
Accept-Patch
[我来译!]Accept-Ranges
Access-Control-Allow-Credentials
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Access-Control-Expose-Headers
Access-Control-Max-Age
Access-Control-Request-Headers
Access-Control-Request-Method
Age
Allow
Alt-Svc
Authorization
Cache-Control
Clear-Site-Data
Connection
Content-Disposition
Content-Encoding
Content-Language
Content-Length
Content-Location
Content-Range
Content-Security-Policy
Content-Security-Policy-Report-Only
Content-Type
Cookie
Cookie2
Cross-Origin-Resource-Policy
DNT
Date
ETag
Early-Data
Expect
Expect-CT
Expires
Feature-Policy
Forwarded
From
Host
If-Match
If-Modified-Since
If-None-Match
If-Range
If-Unmodified-Since
Index
[我来译!]Keep-Alive
Large-Allocation
Last-Modified
Location
Origin
Pragma
Proxy-Authenticate
Proxy-Authorization
Public-Key-Pins
Public-Key-Pins-Report-Only
Range
Referer
Referrer-Policy
Retry-After
Save-Data
[我来译!]Sec-WebSocket-Accept
Server
Server-Timing
[我来译!]Set-Cookie
Set-Cookie2
SourceMap
HTTP Strict Transport Security
TE
Timing-Allow-Origin
Tk
Trailer
Transfer-Encoding
Upgrade-Insecure-Requests
用户代理
Vary
Via
WWW-Authenticate
Warning
X-Content-Type-Options
DNS 预读取
X-Forwarded-For
X-Forwarded-Host
X-Forwarded-Proto
X-Frame-Options 响应头
X-XSS-Protection
100 Continue
101 Switching Protocol
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
307 Temporary Redirect
308 Permanent Redirect
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed(先决条件失败)
413 Payload Too Large
414 URI Too Long
415 Unsupported Media Type
416 Range Not Satisfiable
417 Expectation Failed
418 I'm a teapot
422 Unprocessable Entity
425 Too Early
426 Upgrade Required
428 Precondition Required
429 Too Many Requests
431 Request Header Fields Too Large
451 Unavailable For Legal Reasons
500 内部服务器错误
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
511 Network Authentication Required
CSP: base-uri
CSP: block-all-mixed-content
CSP: child-src
[我来译!]CSP: connect-src
CSP: default-src
CSP: font-src
CSP: form-action
[我来译!]CSP: frame-ancestors
CSP: frame-src
[我来译!]CSP: img-src
[我来译!]CSP: manifest-src
[我来译!]CSP: media-src
[我来译!]CSP: object-src
[我来译!]CSP: plugin-types
[我来译!]CSP: referrer
[我来译!]CSP: report-uri
[我来译!]CSP: require-sri-for
CSP: sandbox
[我来译!]CSP: script-src
[我来译!]CSP: style-src
[我来译!]CSP: upgrade-insecure-requests
CSP: worker-src
[我来译!]report-to