由于用户的喜好,此存储cookie未存储 [英] This set-cookie was not stored due to user preference

查看:312
本文介绍了由于用户的喜好,此存储cookie未存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从api设置了一个cookie,并将其作为响应返回.但是最新版本的chrome beta不允许我存储cookie.我还设置了SameSite ="None"和Secure以考虑第三方Cookie.但这并没有存储.

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

推荐答案

检查chrome://settings/content/cookies.您要确保:

  • 允许网站保存和读取cookie数据(推荐)" 启用
  • 阻止第三方cookie" 禁用
  • 检查那里的其他设置,以确保该站点不在阻止"列表中.
  • "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.

您还应该检查是否没有影响Cookie行为的扩展名.进行此测试的一种快速方法是尝试使用隐身模式或创建新的Chrome配置文件.

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.

这篇关于由于用户的喜好,此存储cookie未存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆