add disableHostCheck to devServer config since webpack dev server is proxied
This commit is contained in:
parent
937bbac911
commit
83bea6e9b8
|
@ -257,6 +257,7 @@ if (IS_DEV_SERVER) {
|
|||
config.devServer = {
|
||||
host: DEV_SERVER_HOST,
|
||||
port: DEV_SERVER_PORT,
|
||||
disableHostCheck: true,
|
||||
headers: { 'Access-Control-Allow-Origin': '*' },
|
||||
stats: 'errors-only',
|
||||
hot: DEV_SERVER_LIVERELOAD,
|
||||
|
|
Loading…
Reference in New Issue