Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
Signed-off-by: danbugs <[email protected]>
  • Loading branch information
danbugs committed Feb 22, 2024
1 parent 2327316 commit f854b28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ async fn get_player_head_to_head(
}

fn rocket() -> Rocket<Build> {
#[cfg(debug_assertions)]
let allowed_origins = AllowedOrigins::some_exact(&[DEV_ADDRESS, DEV_ADDRESS_2]);
// #[cfg(debug_assertions)]
// let allowed_origins = AllowedOrigins::some_exact(&[DEV_ADDRESS, DEV_ADDRESS_2]);

#[cfg(not(debug_assertions))]
// #[cfg(not(debug_assertions))]
let allowed_origins = AllowedOrigins::some_exact(&[PROD_ADDRESS, PROD_ADDRESS_2]);

let cors = rocket_cors::CorsOptions {
Expand Down

0 comments on commit f854b28

Please sign in to comment.