I am using angular2 for my website ,and I got EXCE

2019-08-14 22:56发布

问题:

I developed a web site using angular2.IT is working fine with "http://somthingxyz.com"in all the browser.But When I am using "https://somthingxyz.com" then I got EXCEPTION: Uncaught (in promise): Error: Access is denied.In IE 11.

How can I use base url with "https".If I set the base URL with http then It is working well.But when I set my base URL with "https" Then I got the EXCEPTION: Uncaught (in promise): Error: Access is denied.In IE 11

How can I resolve the above error.

// This file includes polyfills needed by Angular 2 and is loaded before // the app. You can add your own extra polyfills to this file.

import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/reflect';

import 'core-js/es7/reflect';
import 'zone.js/dist/zone';