Skip to content

Commit

Permalink
Add a second localhost port for the frontend to run on so it's easy t…
Browse files Browse the repository at this point in the history
…o run a container instance and a bare version in parallel.
  • Loading branch information
jhodapp committed Dec 9, 2024
1 parent eed3b1a commit 2fac6b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ 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:3000".parse::<HeaderValue>().unwrap())
.allow_origin("http://localhost:3001".parse::<HeaderValue>().unwrap());

axum::serve(
listener,
Expand Down

0 comments on commit 2fac6b1

Please sign in to comment.