Harry-Chen / Learn-Helper

清华大学网络学堂助手
https://chrome.google.com/webstore/detail/learn-helper/mdehapphdlihjjgkhmoiknmnhcjpjall
MIT License
208 stars 37 forks source link

SameSite=Lax by default cookies will cause 404 error in pages with iframe #87

Closed jameslahm closed 4 years ago

jameslahm commented 4 years ago

非常感谢开发这个项目! chrome新版本已经对没有设置SameSite的cookie作第三方使用屏蔽处理,会导致含有网络学堂内嵌iframe的页面出现404。目前尝试可以通过chrome://flags,禁用掉SameSite by default cookies解决。firefox新版本可能也有这个问题,应该可以通过about:config,禁用掉network.cookie.sameSite.laxByDefault解决。感觉如果可行的话,可以加到文档里~

Harry-Chen commented 4 years ago

不完全是这个问题,参见 #81 。

Harry-Chen commented 4 years ago

因为理论上来说,插件是需要被认为同源的,否则插件的网络请求就全部废掉了。

jameslahm commented 4 years ago

噢,是的,刚看到 https://www.chromium.org/updates/same-site/test-debug#TOC-Testing-Chrome-extensions 谢谢~