basic-http-server icon indicating copy to clipboard operation
basic-http-server copied to clipboard

Add Access-Control-Allow-Origin header to file response

Open g-braeunlich opened this issue 4 years ago • 0 comments

This would be nice for e.g. serving wasm. If this header is missing, you will get

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:4000/file.wasm. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

g-braeunlich avatar May 24 '21 09:05 g-braeunlich