We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORSのHTTPリクエストを行う場合、ある特定条件下ではpreflightリクエストというものが実際のリクエストの前に行われる。(つまり計2回通信する)
以下の条件のどれかが満たされたとき、preflightリクエストを行う
preflightリクエストは以下のようなリクエスト、
これに対するレスポンスは、
preflightリクエストとそのレスポンスは対になるようなヘッダを持つ。
ここまでやって許可されてから、やっと実際の通信が行われる。
参考 https://dev.classmethod.jp/etc/about-cors/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
preflightリクエスト
CORSのHTTPリクエストを行う場合、ある特定条件下ではpreflightリクエストというものが実際のリクエストの前に行われる。(つまり計2回通信する)
特定条件とは
以下の条件のどれかが満たされたとき、preflightリクエストを行う
流れ
preflightリクエストは以下のようなリクエスト、
Access-Control-Request-Headers など、「こういう内容で通信しますよ」とサーバに事前に知らせる
これに対するレスポンスは、
preflightリクエストとそのレスポンスは対になるようなヘッダを持つ。
ここまでやって許可されてから、やっと実際の通信が行われる。
参考
https://dev.classmethod.jp/etc/about-cors/
The text was updated successfully, but these errors were encountered: