Micro Front end Single SPA - died in status LOADING_SOURCE_CODE: Error loading

274 views Asked by At

single-spa-layout.min.js:2 Uncaught Error: application 'app' died in status LOADING_SOURCE_CODE: Error loading

Root application running on one server , and Sub application running on another server. On accessing root sub application main.js file not loading. showing above error.

Access to script at 'https://external.com/Common/main.js' from origin 'https://test.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

How to fix this issue.

0

There are 0 answers