【发布时间】:2016-01-24 16:30:08
【问题描述】:
在我的页面上我有这个 ajax 调用:
$.getJSON(
"@Url.Action("GetSchedulers")",
{ start: start, end: end },
function(data) {
fillCalendar(data);
}
);
一切正常,除非我尝试在 Zscaler 代理后面访问它,然后浏览器返回 CORS 错误:
"No 'Access-Control-Allow-Origin' header is present on the requested resource."
请求网址是https://gateway.zscaler.net/auD?origurl={my_url}。
有谁知道如何在不被 zscaler 过滤的情况下发送请求?
【问题讨论】:
-
这可行吗:stackoverflow.com/a/28359412/495455 ?如果是这样,那么您需要重新配置 Zscaler 或使用不同的代理。
标签: javascript c# ajax asp.net-mvc