Can client JavaScript use its own HTTP proxy?

最后都变了- 提交于 2019-12-05 20:00:30

No, but...

This is not possible in the way you asked it. However, the same can be accomplished by using an iframe that opens an address of an URL chaining proxy. In your example, you have to call the following address (if your proxy allows URL chaining)

http://proxy.example.com/http://server.example.com

i hope that helps.

cheers, michael

No, you cannot set the proxy by Javascript.

there doesn't seem to be a security issue

Arbitrary Javascript altering browser settings IS a security issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!