Skip to content

Commit

Permalink
Merge pull request #95 from stefanibus/fix/codesandboxInvalidHostHeader
Browse files Browse the repository at this point in the history
fix: invalid host header issue on codesandbox
  • Loading branch information
ernscht authored Oct 23, 2023
2 parents 2810a22 + a9b09ee commit 3c1b726
Show file tree
Hide file tree
Showing 25 changed files with 253 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

We are more than happy to accept external contributions to the project
in the form of feedback, bug reports and even better - pull requests :)
All our CodeSandBox-Samples are [synced-templates](https://codesandbox.io/docs/learn/sandboxes/synced-templates) with our GitHub-repo: they will update automatically, once our repositories master branch got updated.

## How to contribute

Expand Down
18 changes: 18 additions & 0 deletions examples/find-components/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/find-components/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/five-star/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/five-star/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
module: {
Expand Down
18 changes: 18 additions & 0 deletions examples/get-component-by-dom-node/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/get-component-by-dom-node/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/gondel-react/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/gondel-react/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.ts',
module: {
Expand Down
18 changes: 18 additions & 0 deletions examples/hello-world/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/hello-world/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/lazy-load/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/lazy-load/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/plugin-data/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/plugin-data/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.ts',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/plugin-media-query/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/plugin-media-query/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/plugin-resize/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/plugin-resize/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/react-gondel/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/react-gondel/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/trigger-public-event/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/trigger-public-event/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.js',
plugins: [
Expand Down
18 changes: 18 additions & 0 deletions examples/typescript/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}
3 changes: 3 additions & 0 deletions examples/typescript/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's
module.exports = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
allowedHosts: ['.codesandbox.io', '.csb.app'],
},
context: __dirname,
entry: './src/index.ts',
plugins: [
Expand Down

0 comments on commit 3c1b726

Please sign in to comment.