Reputation: 32740
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
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
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
Reputation: 26976
You could use a local proxy (such as fiddler) to route the AJAX requests to the service on your LocalHost.
Upvotes: 1