Reputation: 23
I'm creating a google chrome extension, and i need to send an ajax request to a https *rest api*. I was testing this request on http page and i was making the request to a https page, so it didn't worked because the cross domain posting. So i was searching if the chrome extensions have this "problem" too. Anyone knows if its possible to send a request to a https page from a chrome extension?
Thanks in advance :)
Upvotes: 1
Views: 3597
Reputation: 280
Add this to your manifest to allow your extension to access any https site.
{
"name": "My extension",
...
"permissions": [
"https://*/*"
],
...
}
See http://developer.chrome.com/extensions/xhr.html for more info
Upvotes: 3