admin api: fix CORS to work in browser

This commit is contained in:
Alex Auvolat
2025-01-28 18:15:36 +01:00
parent d5ad797ad7
commit 4cb45bd398
3 changed files with 15 additions and 6 deletions
+1
View File
@@ -219,6 +219,7 @@ impl AdminApiRequest {
/// Get the kind of authorization which is required to perform the operation.
pub fn authorization_type(&self) -> Authorization {
match self {
Self::Options(_) => Authorization::None,
Self::Health(_) => Authorization::None,
Self::CheckDomain(_) => Authorization::None,
Self::Metrics(_) => Authorization::MetricsToken,