Skip to content

Add CORS config to webpack_dev_server #99

@leebenson

Description

@leebenson

Currently, http://localhost:8080 won't hot-reload when a ReactQL project is bound to a non-localhost IP due to cross-origin restrictions. This makes it difficult to test over a LAN.

This needs adding to the Webpack dev config:

// Allow any origins, for use with Docker or alternate hosts, etc
headers: {
  'Access-Control-Allow-Origin': '*',
},

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions