Isaac Waller
Isaac Waller

Reputation: 32740

Firefox 3: Enable AJAX to localhost from outside domain

I am running a HTTP server on my development machine. I have a website, on some web server on the Internet. How can I get Firefox to allow communication from this website to localhost temporarily while I develop?
Thanks,
Isaac Waller

Upvotes: 2

Views: 3633

Answers (3)

Vasil
Vasil

Reputation: 38166

If you really need to do it you can set up your web server so it temporarily serves the content with an access-control header. But for your situation it would be best to use a proxy. See this:

http://ajaxian.com/archives/cross-site-xmlhttprequest-in-firefox-3

Upvotes: -1

Dan Davies Brackett
Dan Davies Brackett

Reputation: 10081

The approach I use in this situation is to insert a hosts-file entry mapping localhost to a subdomain of the target internet site.

Upvotes: 4

Zhaph - Ben Duguid
Zhaph - Ben Duguid

Reputation: 26976

You could use a local proxy (such as fiddler) to route the AJAX requests to the service on your LocalHost.

Upvotes: 1

Related Questions