XMLHtt prequest不能ZScaler加载问题 [英] XMLHttpRequest cannot load issue with ZScaler

查看:324
本文介绍了XMLHtt prequest不能ZScaler加载问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主持一个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.

希望它帮助。

这篇关于XMLHtt prequest不能ZScaler加载问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆