Why does Chrome ignore Set-Cookie header?

后端 未结 1 597
臣服心动
臣服心动 2021-02-07 10:04

Chrome has a long history of ignoring Set-Cookie header. Some of these reasons have been termed bugs and fixed, others are persistent. None of them are easy to find in documenta

1条回答
  •  盖世英雄少女心
    2021-02-07 10:12

    One thing that has bitten me and is not on your list: if you are trying to set a secure cookie through HTTP on localhost, Chrome will reject it because you are not using HTTPS.

    This kind of makes sense, but is annoying for local development. (Firefox apparently makes an exception for this case and allow to set secure cookies over HTTP on localhost).

    0 讨论(0)
提交回复
热议问题