Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid host header issue on codesandbox #95

Merged

Conversation

stefanibus
Copy link
Contributor

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:

codesandbox/codesandbox-client#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?

  • Documentation update
  • Bug fix
  • Enhancement
  • Other... Please describe

What changes did you make?

Does this pull request introduce a breaking change?

Is there anything you'd like reviewers to focus on?

solves Issue merkle-open#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:

codesandbox/codesandbox-client#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
@ernscht ernscht self-requested a review October 19, 2023 07:36
@ernscht ernscht self-assigned this Oct 19, 2023
@ernscht ernscht added enhancement New feature or request documentation Everything about documentation and examples and removed enhancement New feature or request labels Oct 19, 2023
Copy link
Member

@ernscht ernscht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, let's give it a try. Thank you very much.

Can you take care of the little changes?

.github/contributing.md Outdated Show resolved Hide resolved
examples/find-components/.codesandbox/tasks.json Outdated Show resolved Hide resolved
stefanibus and others added 2 commits October 20, 2023 09:44
solves Issue merkle-open#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:

codesandbox/codesandbox-client#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
@ernscht ernscht merged commit 3c1b726 into merkle-open:master Oct 23, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Everything about documentation and examples
Development

Successfully merging this pull request may close these issues.

2 participants