Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This set-cookie was not stored due to user preference

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

like image 607
Vignesh Kesavan Avatar asked Apr 09 '20 14:04

Vignesh Kesavan


1 Answers

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.

chrome://settings/content/cookies settings page

like image 60
rowan_m Avatar answered Oct 13 '22 19:10

rowan_m