CORS Chrome Extension with manifest version 2 -
is possible use cors when writing google chrome extension?
i saw this, http://developer.chrome.com/extensions/contentsecuritypolicy.html
and tried inserting manifest, "content_security_policy": "script-src 'self' https://twitter.com/; object-src 'self'",
but ajax requestion fails xmlhttprequest cannot load https://twitter.com/. origin chrome-extension://olimhkjfpndfhdopbneamnekfalckinc not allowed access-control-allow-origin.
to enable cross-origin ajax extension twitter, need list twitter host permission in manifest:
... "permissions": [ "*://*.twitter.com/*" ], ...
Comments
Post a Comment