Skip to content

Commit

Permalink
Support IPv6 in CORS rules
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Oct 18, 2024
1 parent cf8436f commit 5c04b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/subspace-node/src/commands/run/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,10 @@ pub(super) fn create_consensus_chain_configuration(
Cors::List(vec![
"http://localhost:*".into(),
"http://127.0.0.1:*".into(),
"http://[::1]:*".into(),
"https://localhost:*".into(),
"https://127.0.0.1:*".into(),
"https://[::1]:*".into(),
"https://polkadot.js.org".into(),
])
}
Expand Down
2 changes: 2 additions & 0 deletions crates/subspace-node/src/commands/run/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ pub(super) fn create_domain_configuration(
Cors::List(vec![
"http://localhost:*".into(),
"http://127.0.0.1:*".into(),
"http://[::1]:*".into(),
"https://localhost:*".into(),
"https://127.0.0.1:*".into(),
"https://[::1]:*".into(),
"https://polkadot.js.org".into(),
])
}
Expand Down

0 comments on commit 5c04b27

Please sign in to comment.