We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7c33d commit a7970ecCopy full SHA for a7970ec
server/src/api/mod.rs
@@ -6,7 +6,7 @@ mod internal;
6
pub mod jsonapi;
7
mod tempo;
8
9
-use axum::Router;
+use axum::{Router, http::header::{ACCEPT, AUTHORIZATION}};
10
use base::database::get_database;
11
pub use error::Error;
12
use eyre::Result;
@@ -23,7 +23,7 @@ pub fn router() -> Result<Router> {
23
let cors = CorsLayer::new()
24
.allow_methods(Any)
25
.allow_origin(Any)
26
- .allow_headers(Any);
+ .allow_headers([AUTHORIZATION, ACCEPT]);
27
let tracing = TraceLayer::new_for_http();
28
let conn = get_database()?.clone();
29
Ok(Router::new()
0 commit comments