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/#'.