3

I have an angular 6 application I have kept index.html in the web server and calling the bundles like main.js from cdn. When I do this I get the following error

application error : Error: Uncaught (in promise): SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'https://mywebsite-dev-cdn.mydomain.com/devorigin/webassets/' cannot be created in a document with origin 'http://dev.mydomain.com' and URL 'http://dev.mydomain.com/#'.

kumar
  • 8,207
  • 20
  • 85
  • 176
  • 1
    please refer to https://stackoverflow.com/questions/49365057/angular-deployment-without-server-error-securityerror-failed-to-execute-rep – jcuypers Feb 12 '19 at 19:07
  • please add a more complete example so we can help, a test project would be great, you can use https://stackblitz.com/ – luiscla27 Feb 15 '19 at 00:59

0 Answers0