This set-cookie was not stored due to user preference

旧城冷巷雨未停 提交于 2020-07-08 12:44:06

问题


I have set a cookie from an api and returned it as a response. But the latest version of chrome beta is not letting me to store the cookie. I have also set the SameSite="None" and Secure for considering third party cookies. But this is not getting stored.

https://i.stack.imgur.com/H3Ov3.png


回答1:


Check chrome://settings/content/cookies. You want to ensure that:

  • "Allow sites to save and read cookie data (recommended)" is enabled
  • "Block third-party cookies" is disabled
  • Check the other settings there to ensure that the site is not on the "Block" list.

You should also check that you don't have any extensions that are affecting cookie behaviour. A quick way of generally testing this is to try in Incognito Mode or by creating a new Chrome profile.



来源:https://stackoverflow.com/questions/61123108/this-set-cookie-was-not-stored-due-to-user-preference

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!