Chrome Extension Same Origin Policy – How to Disable Same Origin Policy in Chrome Extension

google-chromegoogle-chrome-extensionsame-origin-policy

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

Best Answer

Your manifest.json file should have the domain you're looking to use in the permissions:

"permissions": [
    "http://*.domain.com/"
]
Related Question