Skip to content

Commit

Permalink
fix: allow credentials for local debugging (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
torbrenner authored Nov 15, 2024
1 parent bc91209 commit 38cb5b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ async fn main() {
let cors = CorsLayer::new()
.allow_methods([Method::GET, Method::POST])
.allow_origin(CONFIG.cors_origin.clone())
.allow_headers([header::CONTENT_TYPE]);
.allow_headers([header::CONTENT_TYPE])
.allow_credentials(true);

let mut app = Router::new()
.route("/health", get(handler_health))
Expand Down

0 comments on commit 38cb5b1

Please sign in to comment.