Search code examples
google-chromexmlhttprequestcross-domaingreasemonkeyuserscripts

Userscript in Chrome, Cross-Origin communication


Chrome has its own Greasemonkey, anyway it has many limit. One of them is that its xmlhttprequest doen't support Cross-Origin. So is there any way to make it works?

thanks


Solution

  • Chrome now supports cross-domain requests via GM_xmlhttpRequest.

    Here's the documentation for Greasemonkey's (Firefox) GM_xmlhttpRequest().