Closed stefanibus closed 1 year ago
solves Issue #94 (The examples no longer work in CodeSandbox environments.)
We need to add the allowedhosts-flag to devServer-settings for webpack.config:
devServer-config to solve "Invalid Host header Issue" on CodeSandBox:
https://github.com/codesandbox/codesandbox-client/issues/3392 and
https://stackoverflow.com/a/43647767 and https://codesandbox.io/docs/learn/repositories/task#configuring-task-ports
https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#firewall
https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
firewall: false, // failed while testing
disableHostCheck: true, // failed while testing
allowedHosts: This flag finally solved it
solves Issue #94 (The examples no longer work in CodeSandbox environments.)
We need to add the allowedhosts-flag to devServer-settings for webpack.config:
devServer-config to solve "Invalid Host header Issue" on CodeSandBox:
https://github.com/codesandbox/codesandbox-client/issues/3392 and
https://stackoverflow.com/a/43647767 and https://codesandbox.io/docs/learn/repositories/task#configuring-task-ports
https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#firewall
https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
firewall: false, // failed while testing
disableHostCheck: true, // failed while testing
allowedHosts: This flag finally solved it
Purpose of this pull request?
What changes did you make?
Does this pull request introduce a breaking change?
Is there anything you'd like reviewers to focus on?