single-spa / single-spa-react

Single-spa lifecycles helper for React applications
https://single-spa.js.org/docs/ecosystem-react.html
MIT License
227 stars 63 forks source link

Local CORS #159

Closed Fredleig closed 11 months ago

Fredleig commented 1 year ago

1) yarn create single-spa 2) yarn start --port 8500 3) Go to http://single-spa-playground.org/playground/instant-test?name=@spa/spaReact&url=8500 image

MilanKovacic commented 11 months ago

You need to configure CORS policy of the webpack development server. Please see https://stackoverflow.com/questions/31602697/webpack-dev-server-cors-issue.