?
This document uses PHP Chinese website manual Release
Origin
請求報頭指示其中從取起源。它不包含任何路徑信息,但僅包含服務(wù)器名稱。它與 CORS 請求以及POST
請求一起發(fā)送。它與Referer
標(biāo)題相似,但與此標(biāo)題不同,它沒有公開整個路徑。
Header type | Request header |
---|---|
Forbidden header name | yes |
Origin: ""Origin: <scheme> "://" <host> [ ":" <port> ]
Origin
可以是空字符串:例如,如果源是data
URL,這很有用。
<scheme>使用的協(xié)議。通常,它是 HTTP 協(xié)議或其安全版本 HTTPS。<host>服務(wù)器的域名(用于虛擬主機(jī))或 IP。<port>服務(wù)器正在監(jiān)聽的可選 TCP 端口號。如果沒有給出端口,則暗示所請求服務(wù)的默認(rèn)端口(例如,HTTP URL 為“80”)。
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