简体   繁体   English

通过代理的Javascript

[英]Javascript going through a Proxy

I am working on a project right now that requires some javascript for the proper functionality we are looking for. 我现在正在做一个项目,该项目需要一些javascript来实现我们正在寻找的适当功能。 The problem we are running into is that the clients of this web-based app can only access the site through a proxy server (due to strict policies). 我们遇到的问题是,基于Web的应用程序的客户端只能通过代理服务器访问该站点(由于严格的策略)。 This proxy server is stripping the javascript from the page and we are unable to replicate the exact proxy setting to determine a solution. 该代理服务器正在从页面上剥离javascript,我们无法复制确切的代理设置来确定解决方案。 Has anyone ran into this problem before and found a solution? 有人遇到过这个问题并找到了解决方案吗?

If there's a fixed set of client machines, and you can go for Firefox only, you might be able to do something using a Firefox extension or a bookmarklet that fetches the Javascript some other way that the proxy doesn't recognize (eg as base64 encoded data). 如果有一组固定的客户端计算机,并且只能使用Firefox,则可以使用Firefox扩展或书签来执行某些操作,该扩展以某种代理无法识别的其他方式获取Javascript(例如,以base64编码)数据)。 It would however certainly require a load of work, and you may have to program the extension yourself... Probably cheaper to buy a new Proxy. 但是,这肯定会需要大量的工作,并且您可能必须自己编写扩展程序……购买新的代理服务器可能会更便宜。

我们的一些客户遇到了这些问题,我们告诉他们通过HTTPS访问我们的应用程序,由于大多数代理不会过滤安全流量,因此可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM