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

Livereload CORS ย #16

@allanesquina

Description

@allanesquina

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!
๐Ÿ‘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions