News for hackers. Stuff that matters.
Re:Firefox desktop market share now below 9% by vorticalbox on Tuesday December 04, 2018 @02:27AM (#18597109)
You should be setting your server to set cors to allow all not disabling it in your browser.

This is what we do while running docker for local development with node.

Re:Firefox desktop market share now below 9% by oelmekki on Tuesday December 04, 2018 @03:10AM (#18597350)
At the very least, CORS should be disabled for localhost. I build interfaces using create-react-app, which launches a dev server on localhost:3000 (useful for things like live reload), making requests on a go api on localhost:5000. On production, both are on :80 and the backend serves frontend production files. This is annoying to alter the application code just to handle dev environment (although, this already happen in many other places, so it's not critical).