如何在 Chrome 扩展程序中禁用同源策略?
也许有一些设置可以在扩展上下文中禁用此功能。由于我正在开发一个扩展,所以我自己有责任不射中自己的目标。在开发浏览器扩展时,摆弄这个完全不合理的安全问题是非常令人沮丧的。
我不想通过全局禁用它来使整个浏览器变得不安全。仅适用于在manifest.json 的“content_scripts”部分中设置的脚本
Maybe are there some settings to disable this in extension context. Since I'm developing an extension it should be my own responsibility to not shoot my own goal. It is very frustrating to fiddle with this security thing that is totally out of reason when developing browser extensions.
I don't want to make whole browser insecure by disabling it globally. just for the scripts that are set in "content_scripts" section in manifest.json
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的
manifest.json
文件应包含您要在权限中使用的域:Your
manifest.json
file should have the domain you're looking to use in the permissions: