aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/http/headers/origin/index.html
blob: 403fb6345049d8af40e8182b002c0467d2763d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
title: Origin
slug: Web/HTTP/Headers/Origin
tags:
  - HTTP
  - Reference
  - Request header
  - header
  - origin
  - 헤더
translation_of: Web/HTTP/Headers/Origin
---
<div>{{HTTPSidebar}}</div>

<p><strong><code>Origin</code></strong> request 헤더는 fetch가 시작되는 위치입니다. 경로 정보는 포함하지 않고 서버 이름만 포함합니다. {{HTTPMethod("POST")}} requests에 포함되는 것처럼, {{Glossary("CORS")}} requests 와 함께 전송합니다. {{HTTPHeader("Referer")}} 헤더와 비슷하지만, origin 헤더는 전체 경로를 공개하지 않습니다.</p>

<div class="blockIndicator note">
<p><strong>주의</strong>: {{HTTPMethod("HEAD")}}{{HTTPMethod("GET")}} 메서드를 통해 <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch">Fetch requests</a>를 사용할 때 {{httpheader("Origin")}} 헤더가 설정되지 않았습니다. (이 문제는 파이어폭스 65에서 수정되었습니다 — {{bug(1508661)}}참조).</p>
</div>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Header type</th>
   <td>{{Glossary("Request header")}}</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Forbidden header name")}}</th>
   <td>yes</td>
  </tr>
 </tbody>
</table>

<h2 id="문법">문법</h2>

<pre class="syntaxbox">Origin: null
Origin: &lt;scheme&gt; "://" &lt;hostname&gt; [ ":" &lt;port&gt; ]
</pre>

<h2 id="지시">지시</h2>

<dl>
 <dt>&lt;scheme&gt;</dt>
 <dd>사용하는 프로토콜. 일반적으로 HTTP 프로토콜 혹은 보안 버전인 HTTPS를 사용합니다.</dd>
 <dt>&lt;hostname&gt;</dt>
 <dd>서버(가상 호스팅)의 이름 또는 IP 입니다.</dd>
 <dt>&lt;port&gt; {{optional_inline}}</dt>
 <dd>서버와 연결을 맺기 위한 TCP 포트 번호. 포트번호를 입력하지 않으면, 요청한 서비스의 기본 포트(HTTP의 경우 "80")가 사용됩니다.</dd>
</dl>

<h2 id="예제">예제</h2>

<pre>Origin: https://developer.mozilla.org</pre>

<h2 id="명세서">명세서</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{RFC("6454", "Origin", "7")}}</td>
   <td>The Web Origin Concept</td>
  </tr>
  <tr>
   <td>{{SpecName('Fetch','#origin-header','Origin header')}}</td>
   <td>Supplants the <code>Origin</code> header as defined in RFC6454.</td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_적합성">브라우저 적합성</h2>



<div>{{Compat("http.headers.Origin")}}</div>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{HTTPHeader("Host")}}</li>
 <li>{{HTTPHeader("Referer")}}</li>
 <li><a href="/en-US/docs/Web/Security/Same-origin_policy">Same-origin policy</a></li>
</ul>