{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/488","repository_url":"https://api.github.com/repos/symfony/webpack-encore","labels_url":"https://api.github.com/repos/symfony/webpack-encore/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/symfony/webpack-encore/issues/488/comments","events_url":"https://api.github.com/repos/symfony/webpack-encore/issues/488/events","html_url":"https://github.com/symfony/webpack-encore/issues/488","id":397995273,"node_id":"MDU6SXNzdWUzOTc5OTUyNzM=","number":488,"title":"Invalid Host/Origin header errors showing up in the JS console","user":{"login":"wujekbogdan","id":533954,"node_id":"MDQ6VXNlcjUzMzk1NA==","avatar_url":"https://avatars1.githubusercontent.com/u/533954?v=4","gravatar_id":"","url":"https://api.github.com/users/wujekbogdan","html_url":"https://github.com/wujekbogdan","followers_url":"https://api.github.com/users/wujekbogdan/followers","following_url":"https://api.github.com/users/wujekbogdan/following{/other_user}","gists_url":"https://api.github.com/users/wujekbogdan/gists{/gist_id}","starred_url":"https://api.github.com/users/wujekbogdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wujekbogdan/subscriptions","organizations_url":"https://api.github.com/users/wujekbogdan/orgs","repos_url":"https://api.github.com/users/wujekbogdan/repos","events_url":"https://api.github.com/users/wujekbogdan/events{/privacy}","received_events_url":"https://api.github.com/users/wujekbogdan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-01-10T20:11:08Z","updated_at":"2019-02-23T21:55:00Z","closed_at":"2019-02-23T21:55:00Z","author_association":"NONE","body":"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`.\r\n\r\nMy 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. \r\n\r\nThe 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.\r\n\r\nThe errors are caused by Webpack dev server. [Here's the bug report](https://github.com/webpack/webpack-dev-server/issues/1604#issuecomment-449845801).\r\n\r\n<img width=\"270\" alt=\"invalid host origin header\" src=\"https://user-images.githubusercontent.com/533954/50993853-ef526c00-151a-11e9-954e-d364a8db4afb.png\">"}}
{"actor":{"display_login":"Lyrkan"}}