Skip to content

Commit e60477e

Browse files
committed
fix: cors allow_credentials
1 parent 203f3b6 commit e60477e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ async fn main() -> anyhow::Result<()> {
223223

224224
let cors = CorsLayer::new()
225225
.allow_origin(Any)
226+
.allow_credentials(true)
226227
.allow_methods(Any)
227228
.allow_headers(Any);
228229

0 commit comments

Comments
 (0)