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
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 main branch got updated.
stefanibus marked this conversation as resolved.
Show resolved Hide resolved

## How to contribute

Expand Down
22 changes: 22 additions & 0 deletions examples/find-components/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
stefanibus marked this conversation as resolved.
Show resolved Hide resolved
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/five-star/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 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,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/gondel-react/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/hello-world/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/lazy-load/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/plugin-data/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/plugin-media-query/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/plugin-resize/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/react-gondel/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/trigger-public-event/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"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
22 changes: 22 additions & 0 deletions examples/typescript/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true,
"preview": {
// Set 8080 as primary port for task start
"port": 8080
}
}
}
}
Loading
Loading