Skip to content

Commit

Permalink
only specify 1 allow_origin entry
Browse files Browse the repository at this point in the history
the port 3001 entry was superseding the port 3000 entry
  • Loading branch information
calebbourg committed Dec 11, 2024
1 parent fa0d965 commit 132b399
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ pub async fn init_server(app_state: AppState) -> Result<()> {
CONTENT_TYPE,
])
.expose_headers([ApiVersion::field_name().parse::<HeaderName>().unwrap()])
.allow_origin("http://localhost:3000".parse::<HeaderValue>().unwrap())
.allow_origin("http://localhost:3001".parse::<HeaderValue>().unwrap());
.allow_origin("http://localhost:3000".parse::<HeaderValue>().unwrap());

axum::serve(
listener,
Expand Down

0 comments on commit 132b399

Please sign in to comment.