SOP

<aside> ๐Ÿ’ก Same Origin Policy = ๊ฐ™์€ ์ถœ์ฒ˜ ์ •์ฑ…

</aside>

Untitled

๊ฐ™์€ ์ถœ์ฒ˜ ๊ธฐ์ค€

Untitled

URL ์€ Protocol, Host, Port, Path ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์Œ

<aside> ๐Ÿ’ก ๊ฐ™์€ ์ถœ์ฒ˜์ธ์ง€ ๋น„๊ตํ•˜๋ ค๋ฉด ๋‘ URL์˜ Protocol, Host, Port๊ฐ€ ๋ชจ๋‘ ๋™์ผํ•ด์•ผํ•จ

</aside>

CORS(Cross Origin Resource Sharing)

<aside> ๐Ÿ’ก EX)) A ๋ธŒ๋ผ์šฐ์ € < - > B ์„œ๋ฒ„์˜ ์ •๋ณด์š”์ฒญ๊ณผ ๋ฐ˜ํ™˜์ด ๊ฐ€๋Šฅํ•˜๋„๋กํ•จ

</aside>

Preflight Request

OPTIONS /members/login/ HTTP/1.1
host: localhost:8080

access-control-request-method: POST
access-control-request-headers: content-type
origin: <http://localhost:3000>