Hi,

How to enable proxy through javascript.
when you apply a proxy in IE or any other web-browser it doesn't apply the proxy to javascript. I need to know if there is any method to force javascript run through the applied proxy in web-browser.

Thanks

If you use XMLHttpRequest you should be able to do this (change values for host and port to your own proxy values:

var proxy = {
                host: 'proxy',
                port: 8080
}

var xhr = new XMLHttpRequest(proxy);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.