Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Nov 6, 2024
1 parent 77e189d commit 730f0a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ fn rocket() -> _ {

let allowed_origins = AllowedOrigins::some_exact(&[
"http://localhost:3000",
"http://127.0.0.1:8080",
"https://dev.near.org",
"https://near.social",
"https://neardevhub.org",
"https://devhub.near.page",
"https://devhub-cache-api-rs.fly.dev", // TODO Add prod urls here
]);
let cors = rocket_cors::CorsOptions {
Expand Down

0 comments on commit 730f0a1

Please sign in to comment.