0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ブラウザ毎のCookieのSameSite属性の動きを確認した

Posted at

環境

  • Chromium: 114.0.5735.110(2023/06/05)
  • Firefox: 114.0(2023/06/06)
  • Safari: 14.1.1(iOS 14.6)(2021/05/24)

クロスオリジンのとき

- Chromium Firefox Safari
遷移(GET) None/Lax None/Lax None/Lax
遷移(POST) None None None
fetch(GET/POST) None - - (None※1)
  • 太字はデフォルト値
  • MDNの記載通り。
  • Firefox,Safariのfetchでは、アンチトラッキングによりNoneでも送信されない
  • ※1 設定「サイト越えトラッキングを防ぐ」がOFFの場合

同一ドメインのスキーム違いのとき(HTTP->HTTPS)

- Chromium Firefox Safari
遷移(GET) None/Lax None/Lax/Strict None/Lax/Strict
遷移(POST) None None/Lax/Strict None/Lax/Strict
fetch(GET/POST) None None/Lax/Strict None/Lax/Strict

おまけ:Secure属性がついたCookieをHTTPで上書き

Chromium Firefox Safari
不可 不可 不可
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?