Skip to content

Commit 77880d3

Browse files
committed
fix CORS panic: remove allow_credentials incompatible with wildcard origin
1 parent 610bdb3 commit 77880d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ async fn app() -> Result<Router> {
209209
])
210210
// Allow any origin: auth is token/session-based (not cookies),
211211
// and Chromecast HLS playback requires CORS from Google's receiver domain
212-
.allow_origin(Any)
213-
.allow_credentials(true);
212+
.allow_origin(Any);
214213

215214
let server_id = get_server_id().await;
216215
let admin_users = mc

0 commit comments

Comments
 (0)