3
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?

ローカル動作確認でなぜかcookie保存されないな。。というときに疑うこと

Posted at
Cookies marked with SameSite=None must also be marked with Secure to allow setting them in a cross-site context. This behavior protects user data from being sent over an insecure connection.

SameSite=Noneのset-cookieはsecureをtrueにしないとダメ。

スクリーンショット 2024-11-04 18.40.04.png

対処法として、httpsにするなり、SameSite=Lax or SameSite=Strict にする。

3
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
3
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?