regarding security concerns, are browser providers excusable for allowing cross site cookies?

我的未来我决定 提交于 2019-12-11 06:02:01

问题


Regarding security concerns, are browser-providers excusable for allowing cross-site cookies ? Does any important use of it do justify the existance of this dangerous mechanism?

See this reference


回答1:


No.

Webmasters can ask (modern) browser to only sent cookies when first-party with the SameSite attribute:

Set-Cookie: key=value; HttpOnly; SameSite=strict

https://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/

Beware, it's possible that when arriving on the website from another, cookies will not be sent.



来源:https://stackoverflow.com/questions/43477529/regarding-security-concerns-are-browser-providers-excusable-for-allowing-cross

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