The front end spa is hosted in netlify and backend in heroku. And sending the cookies in response header as shown in the image. But it is not set in the chrome devtools Application or can't be accessed through document.cookie from console.
经过长时间的搜索,我发现你不能为跨源设置cookie。
我正在使用 Vue 和 Django Rest Framework。
您可以使用子域并将 cookie 设置为同一站点“none”,安全并将域设置为“.example.com”。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)