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 3 years have passed since last update.

【cookie】secure属性のcookieをhttpで取得できない

Posted at

タイトル通りだが、secure属性が有効なcookieはhttpの時、document.cookie() で取得できない。

そもそも、[(URL に http: を含む) 安全でないサイトは、 Secure 属性を使用してクッキーを設定することができません] (https://developer.mozilla.org/ja/docs/Web/HTTP/Cookies)と記載があるが、同ドメインの場合、httpsでsecure属性を付与したcookieをhttpに持ち歩くことができる。

この場合、httpではdocument.cookie() でsecure属性のcookieは取得できない。

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?