lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.22k stars 86 forks source link

Access to fetch blocked by CORS policy #110

Closed shaunc869 closed 5 years ago

shaunc869 commented 5 years ago

I'm getting Access to fetch at URL_HERE from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Any idea what I'm doing wrong? Thanks!

75lb commented 5 years ago

can you post a reproduction case please - the full ws command you are running plus any config file please..

shaunc869 commented 5 years ago

In my case this was the server not returning the proper headers.