Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Livereload CORS #16

Open
allanesquina opened this issue Dec 23, 2018 · 0 comments
Open

Livereload CORS #16

allanesquina opened this issue Dec 23, 2018 · 0 comments

Comments

@allanesquina
Copy link

allanesquina commented Dec 23, 2018

Hi, thanks for the project.
After install the dependencies and start the app I got a Invalid Host/Origin header error which seems to belong to livereload feature, so I simply fixed that by setting this properties in devServer object on webpack.config.dev file.

   ...
    disableHostCheck: true,  
    headers: {
      "Access-Control-Allow-Origin": "*",
      "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
      "Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization"
    }
   ...

I didn't open any PR, it's just for register.
Best!
👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant