I'm working on a chrome extension that sends an HTTP request using the method GET.
How do I send at www.example.com
the parameter par
with value 0
?
www.example.com?par=0
(the server reads the parameter par
and does some stuff)
I found this article, talking about Cross-Origin XMLHttpRequest. But I don't know how their example could help me.
You have to go to your
manifest.json
and add the permission forwww.example.com
:Then in your background page (or somewhere else) you can do:
Old (deprecated) version using
XMLHttpRequest
:For more information on this topic, see the relative documentation page.