©
本文檔使用php中文網手册發布
Origin
请求报头指示其中从取起源。它不包含任何路径信息,但仅包含服务器名称。它与 CORS 请求以及POST
请求一起发送。它与Referer
标题相似,但与此标题不同,它没有公开整个路径。
Header type |
Request header |
---|---|
Forbidden header name |
yes |
Origin: ""Origin:"://" [ ":" ]
Origin
可以是空字符串:例如,如果源是data
URL,这很有用。
Origin: https://developer.mozilla.org
Specification |
Comment |
---|---|
RFC 6454, section 7: Origin |
The Web Origin Concept |
FetchThe definition of 'Origin header' in that specification. |
Supplants the Origin header as defined in RFC6454. |
Feature |
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
---|---|---|---|---|---|---|
Basic Support |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
Feature |
Android |
Chrome for Android |
Edge mobile |
Firefox for Android |
IE mobile |
Opera Android |
iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
Host
Referer