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
No description provided.
The text was updated successfully, but these errors were encountered:
プリフライトリクエストはブラウザのセキュリティ機構の一つで、実際のリクエストを飛ばす前に仮のリクエストを送ることで Access-Control-Allow-Origin を確認できる。 これによってブラウザは実際のリクエストを送らずに済む。
Access-Control-Allow-Origin
CORSの仕組み上、Access-Control-Allow-Origin の確認はあくまでブラウザ側の仕事なので、実際のリクエスト送るとサーバー側はオリジンに関わらず処理してしまう。 脆弱性によってはリクエストが完了するだけ(レスポンスが不要)で攻撃が成功するパターン(CSRFなど)もあり、プリフライトリクエストはそれを防ぐための仕組みである。
参考 https://note.crohaco.net/2019/http-cors-preflight/
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: