CORS
Last updated
Was this helpful?
Last updated
Was this helpful?
Disable CORS for development by importing "cors" and then use it to disable cors for 'development' in each microservice
if (process.env.NODE_ENV === 'development') { log.info('disable cors'); app.use(cors()); }
EXAMPLE w/ cors:
EXAMPLE w/ header options:
Chrome extension that will let you disable CORS when you want without having to shutdown
Simple option: or - You can click the red button to make it active when you want to disable CORS.
Lots of settings, but you have to create an account:
Try different browsers or the proxy setting for CRA.
Create your own proxy server:
Debugging: Explain settings: CORS module settings: