rsk82
rsk82

Reputation: 29407

How to disable same origin policy in Chrome extension?

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

Upvotes: 3

Views: 3907

Answers (1)

Jimmy Sawczuk
Jimmy Sawczuk

Reputation: 13614

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

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

Upvotes: 7

Related Questions