Skip to content

Commit

Permalink
add --allowed-origins * to torii and katana
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar Oostendorp committed May 10, 2024
1 parent 2418a9b commit 10b4496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl Config {
format!("{}/{}", self.get_storage_base_dir().clone(), TORII_DB),
];

args.push("--allowed-origins *".to_string());
args.push("--allowed-origins \"*\"".to_string());

if let Some(torii_external_url) = &self.torii.torii_external_url {
args.push("--external-url".to_string());
Expand All @@ -250,7 +250,7 @@ impl Config {
pub fn get_katana_args(&self) -> Vec<String> {
let mut args = vec![];

args.push("--allowed-origins *".to_string());
args.push("--allowed-origins \"*\"".to_string());

args.push("--db-dir".to_string());
args.push(format!("{}/katana-db", self.get_storage_base_dir()));
Expand Down

0 comments on commit 10b4496

Please sign in to comment.