Enabling same domain restrictions for xmlhttprequest

5 views
Skip to first unread message

Yansky

unread,
Oct 27, 2007, 3:18:54 PM10/27/07
to greasemonkey-users
Hi, I was wondering if it was possible to enable same domain
restrictions for either the GM_xmlhttpRequest or the regular
XMLHttpRequest object in greasemonkey?

I've tired "new unsafeWindow.XMLHttpRequest();" , but that gave me an
error, so I tried "new window.wrappedJSObject.XMLHttpRequest();" which
didn't give me an error, but also didn't seem to restrict the request
to the same domain.

Is it possible to do this?

Cheers.

Reply all
Reply to author
Forward
0 new messages