AJAX Permissions Error

So you’re going along nicely with a small ajax application and you run into this:

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

AJAX restricts server-side requests to local servers to avoid security issues that would potentially allow javascript to make calls to hostile servers. This can also show up even within your own server if you’ve got a hard-wired path to the query page and the domain has been entered differently (http://www.mypage.com vs. http://mypage.com). Give relative paths, it makes everything more pleasant.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s