From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/http/headers/origin/index.html | 87 ++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 files/pt-br/web/http/headers/origin/index.html (limited to 'files/pt-br/web/http/headers/origin') diff --git a/files/pt-br/web/http/headers/origin/index.html b/files/pt-br/web/http/headers/origin/index.html new file mode 100644 index 0000000000..f110e557d7 --- /dev/null +++ b/files/pt-br/web/http/headers/origin/index.html @@ -0,0 +1,87 @@ +--- +title: Origin +slug: Web/HTTP/Headers/Origin +tags: + - Cabeçalho de requisição + - HTTP + - Origem + - Referencia + - cabeçalho +translation_of: Web/HTTP/Headers/Origin +--- +
{{HTTPSidebar}}
+ +

O cabeçalho de requisição Origin indica onde a requisição se originou. Ele não inclui nenhuma informação do caminho, somente o nome do servidor. Ele é enviado com requisições {{Glossary("CORS")}}, também como requisições {{HTTPMethod("POST")}}. Ele é similar ao cabeçalho {{HTTPHeader("Referer")}}, mas, diferente deste cabeçalho, ele não mostra o caminho inteiro.

+ +
+

Nota: O cabeçalho {{httpheader("Origin")}} não é colocado em requisições Fetch com um método {{HTTPMethod("HEAD")}} ou {{HTTPMethod("GET")}} (este comportamento foi corrigido no Firefox 65 — veja {{bug(1508661)}}).

+
+ + + + + + + + + + + + +
Tipo de cabeçalho{{Glossary("Request header")}}
{{Glossary("Forbidden header name")}}sim
+ +

Sintaxe

+ +
Origin: null
+Origin: <scheme> "://" <hostname> [ ":" <port> ]
+
+ +

Diretivas

+ +
+
<scheme>
+
O protocolo que é usado. Usualmente ele é o protocolo HTTP ou na sua versão segura, HTTPS.
+
<hostname>
+
O nome do domínio do servidor (para host virtual) ou o endereço IP.
+
<port> {{optional_inline}}
+
O número da porta TCP que o servidor está escutando. Se a porta não é dada, a porta padrão do serviço requisitado é implítica (e.g., "80" para uma URL HTTP).
+
+ +

Exemplos

+ +
Origin: https://developer.mozilla.org
+ +

Especificações

+ + + + + + + + + + + + + + + + + + +
EspecificaçãoComentários
{{RFC("6454", "Origin", "7")}}Conceito da Origem da Internet
{{SpecName('Fetch','#origin-header','Origin header')}}Substitui o cabeçalho Origin como definido na RFC6454.
+ +

Compatibilidade de navegador

+ + + +
{{Compat("http.headers.Origin")}}
+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf