问题
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