Skip to content

Invalid Host/Origin header errors showing up in the JS console #488

Closed
@wujekbogdan

Description

@wujekbogdan

I use Webpack Encore to build assets for my non-Symfony app. Let's say that the app root URL is http://my-app.dev.

My app has a parser for the manifest.json file so it's able to load assets from http://my-app.dev/dist/ or from http://127.0.0.1:8080/ - depending on the dev/production mode.

The problem is that if the assets are server from Webpack dev server URL (http://127.0.0.1:8080/) then Invalid Host/Origin header errors keep on showing up in the JS console.

The errors are caused by Webpack dev server. Here's the bug report.

invalid host origin header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions