{"action":"created","issue":{"url":"https://api.github.com/repos/rails/webpacker/issues/424","repository_url":"https://api.github.com/repos/rails/webpacker","labels_url":"https://api.github.com/repos/rails/webpacker/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/rails/webpacker/issues/424/comments","events_url":"https://api.github.com/repos/rails/webpacker/issues/424/events","html_url":"https://github.com/rails/webpacker/issues/424","id":231465750,"node_id":"MDU6SXNzdWUyMzE0NjU3NTA=","number":424,"title":"\"Invalid Host Header\" in JS console since upgrading to Webpacker 2.0","user":{"login":"catskull","id":6233563,"node_id":"MDQ6VXNlcjYyMzM1NjM=","avatar_url":"https://avatars1.githubusercontent.com/u/6233563?v=4","gravatar_id":"","url":"https://api.github.com/users/catskull","html_url":"https://github.com/catskull","followers_url":"https://api.github.com/users/catskull/followers","following_url":"https://api.github.com/users/catskull/following{/other_user}","gists_url":"https://api.github.com/users/catskull/gists{/gist_id}","starred_url":"https://api.github.com/users/catskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catskull/subscriptions","organizations_url":"https://api.github.com/users/catskull/orgs","repos_url":"https://api.github.com/users/catskull/repos","events_url":"https://api.github.com/users/catskull/events{/privacy}","received_events_url":"https://api.github.com/users/catskull/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-05-25T21:31:55Z","updated_at":"2018-06-26T11:30:54Z","closed_at":"2017-07-07T13:29:06Z","author_association":"NONE","body":"Since upgrading to webpacker 2.0, I'm getting a bunch of \"invalid host header\" errors in the JS console. Other sources online have said to pass `disableHostCheck true` when starting webpack-dev-server. I've modified my webpacker.yml to look like this:\r\n\r\n```\r\ndevelopment:\r\n  <<: *default\r\n\r\n  dev_server:\r\n    host: 0.0.0.0\r\n    port: 8080\r\n    disableHostCheck: true\r\n    https: false\r\n```\r\n\r\nAnd then development.js, I've modified the devServer object to include this line: \r\n`disableHostCheck: settings.dev_server.disableHostCheck,`\r\n\r\nIs that appropriate? Is anyone else getting these errors?"},"comment":{"url":"https://api.github.com/repos/rails/webpacker/issues/comments/400274579","html_url":"https://github.com/rails/webpacker/issues/424#issuecomment-400274579","issue_url":"https://api.github.com/repos/rails/webpacker/issues/424","id":400274579,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDI3NDU3OQ==","user":{"login":"maciej-gurban","id":3663640,"node_id":"MDQ6VXNlcjM2NjM2NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/3663640?v=4","gravatar_id":"","url":"https://api.github.com/users/maciej-gurban","html_url":"https://github.com/maciej-gurban","followers_url":"https://api.github.com/users/maciej-gurban/followers","following_url":"https://api.github.com/users/maciej-gurban/following{/other_user}","gists_url":"https://api.github.com/users/maciej-gurban/gists{/gist_id}","starred_url":"https://api.github.com/users/maciej-gurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciej-gurban/subscriptions","organizations_url":"https://api.github.com/users/maciej-gurban/orgs","repos_url":"https://api.github.com/users/maciej-gurban/repos","events_url":"https://api.github.com/users/maciej-gurban/events{/privacy}","received_events_url":"https://api.github.com/users/maciej-gurban/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T11:30:54Z","updated_at":"2018-06-26T11:30:54Z","author_association":"NONE","body":"Could also be that you're trying to load your website at a host not defined in `allowedHosts` (if you're using this setting).\r\n"}}
{"actor":{"display_login":"maciej-gurban"}}