We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4fdb76f + db95e9a commit 8d707f3Copy full SHA for 8d707f3
rofl-scheduler/src/serverd/mod.rs
@@ -51,7 +51,8 @@ pub async fn serve(cfg: Config<'_>) -> Result<()> {
51
52
let cors = cors::CorsLayer::new()
53
.allow_methods([http::Method::GET, http::Method::POST])
54
- .allow_origin(cors::Any);
+ .allow_origin(cors::Any)
55
+ .allow_headers([http::header::CONTENT_TYPE, http::header::AUTHORIZATION]);
56
57
let app = Router::new()
58
.route("/rofl-scheduler/v1/auth/login", post(auth::login))
0 commit comments