XMLHtt prequest不能ZScaler加载问题加载、问题、XMLHtt、prequest

由网友(北佰离歌℡)分享简介:我在主持一个EC2实例的网站,访问与 HTTP页面:// EC2 ... 网​​址。页面,使Ajax请求托管在同一实例的另一个web应用程序。如果我访问通过ZScaler代理的页面,我越来越对铬 XMLHtt prequest无法加载例外。这是因为通过源URL改变代理路过的时候。I've hosted a websi...

我在主持一个EC2实例的网站,访问与 HTTP页面:// EC2 ... 网​​址。页面,使Ajax请求托管在同一实例的另一个web应用程序。如果我访问通过ZScaler代理的页面,我越来越对铬 XMLHtt prequest无法加载例外。这是因为通过源URL改变代理路过的时候。

I've hosted a website in an EC2 instance, and accessing the page with http://ec2... url. The page makes ajax requests to another webapp hosted on the same instance. If I access the page that pass through ZScaler proxy, I'm getting XMLHttpRequest cannot load exception on chrome. It is because when passing through the proxy the origin url is changed.

我尝试添加标题访问控制 - 允许 - 原产地,也与 JSONP 。但是毫无效果。

I tried adding header Access-Control-Allow-Origin and also with JSONP. but nothing worked.

问候 ArunDhaJ

Regards ArunDhaJ

推荐答案

我还没有找到一个完美的解决方案。但是,在以下所用的解决方法:

I haven't yet found a perfect solution. However, find below the workarounds used:

有关的发展,我开始禁用铬的安全功能为:

For development, I start chrome disabling the security feature as:

chrome.exe --disable-web-security

否则,我们需要配置zscaler设置白名单网址。我不知道如何配置它,我们的IT团队做到了。

Else, we need to configure the zscaler settings to whitelist the URL. I don't know how to configure it, our IT team did it.

希望它帮助。

阅读全文

相关推荐

最新文章