Skip to content

Commit

Permalink
config: added cors urls
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemedici committed Mar 5, 2024
1 parent 526ed27 commit 6e97d5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ async fn main(mut req: Request, env: Env, _ctx: Context) -> Result<Response> {
Err(err) => return Response::error(format!("Internal Server Error: {err}"), 500),
};

let origins = ["https://trippavisor-fe-develop.vercel.app"];

let origins = ["https://trippavisor.it", "https://dev.trippavisor.it"];
let cors_headers: Vec<&str> = vec!["Content-Type"];

let cors = Cors::default()
Expand Down

0 comments on commit 6e97d5d

Please sign in to comment.