Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
cors: enable allow_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello committed Nov 3, 2023
1 parent 4b3634b commit bf1ee48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions capture/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pub fn router<
let cors = CorsLayer::new()
.allow_methods([Method::GET, Method::POST, Method::OPTIONS])
.allow_headers(Any)
.allow_credentials(true)
.allow_origin(AllowOrigin::mirror_request());

let router = Router::new()
Expand Down

0 comments on commit bf1ee48

Please sign in to comment.