Javascript IE 10阻塞的AngularJS&;要加载的Jquery内容
我向应用程序添加了新的AuthInterceptor,它被IE-10阻止 代码加载在iframe中,当父URL域与UI和域URL不同时,它将不工作 e、 g父浏览器URL: iframe加载内容URL: 它在Chrome、Firefox中运行良好 如果IE隐私设置设置设置为低或接受所有Cookie(要设置隐私设置,请转到Javascript IE 10阻塞的AngularJS&;要加载的Jquery内容,javascript,jquery,angularjs,security,internet-explorer,Javascript,Jquery,Angularjs,Security,Internet Explorer,我向应用程序添加了新的AuthInterceptor,它被IE-10阻止 代码加载在iframe中,当父URL域与UI和域URL不同时,它将不工作 e、 g父浏览器URL: iframe加载内容URL: 它在Chrome、Firefox中运行良好 如果IE隐私设置设置设置为低或接受所有Cookie(要设置隐私设置,请转到Internet选项>隐私选项卡>设置高-中-低条,则IE 10也能正常工作 是由于域问题还是HTTP或https通信问题? 怎么能修好呢 angular.module('app
Internet选项>隐私选项卡>设置高-中-低条,则IE 10也能正常工作
是由于域问题还是HTTP或https通信问题?
怎么能修好呢
angular.module('app').service('AuthInterceptor', ['$location', 'appConstant', '$q', '$rootScope', '$log', function ($location,appConstant, $q, $rootScope, $log) {
'use strict';
var path = $location.absUrl();
return {
request: function (config) {
var documentReferrer = document.referrer;
//UI cannot be open standalone.
if (documentReferrer === undefined || documentReferrer === ''
//|| documentReferrer === document.location.origin
|| !(documentReferrer.toLowerCase().indexOf('x.com') > -1
|| documentReferrer.toLowerCase().indexOf('y.com') > -1
|| documentReferrer.toLowerCase().indexOf('z.com') > -1
|| documentReferrer.toLowerCase().indexOf('a.com') > -1
|| documentReferrer.toLowerCase().indexOf('b.com') > -1)) {
RedirectToAccessDenied();
}
//should not allowed access without user Id.
var UserId = path.split("?")[1].split("=")[2].split("&")[0];
if (UserId === undefined || UserId === '' || UserId === '00000000-0000-0000-0000-000000000000') {
RedirectToAccessDenied();
}
//Gateway call from UI will be authorized by access token
var access_token = path.split("?")[1].split("&token=")[1].split('#')[0];
config.headers['Authorization'] = 'bearer '+ token;
return config;
},
responseError: function (rejection) {
if (rejection.status === 401) {
RedirectToAccessDenied();
}
}
};
function RedirectToAccessDenied() {
$location.url('/accessDenied');
}
}]);
该文件甚至没有在IE 10中加载隐私设置介质。
为什么被IE阻止?原因是什么?为什么被IE阻止?原因是什么?
。因为您已经更改了浏览器隐私设置:(:(浏览器设置默认为中等…所以默认情况下它不会加载…如果您将隐私设置更改为低,则它正在工作,我不想这样做,也不能要求客户端这样做。。。