Closed marioliu closed 4 years ago
I get this error during postbuild when react-snap is running:
Access to XMLHttpRequest at 'https://website' from origin 'http://localhost:45678' has been blocked by CORS policy
Is there a way to disable CORS for the headless Chrome running in react-snap?
Got it, you just pass in --disable-web-security in the puppeteerArgs array
--disable-web-security
puppeteerArgs
I get this error during postbuild when react-snap is running:
Access to XMLHttpRequest at 'https://website' from origin 'http://localhost:45678' has been blocked by CORS policy
Is there a way to disable CORS for the headless Chrome running in react-snap?