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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -