Add CORS on token endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2025-02-21 15:51:33 +01:00
parent 1a1a41d5dc
commit c9d41f2517

View File

@ -609,8 +609,9 @@ pub async fn token(
}; };
Ok(HttpResponse::Ok() Ok(HttpResponse::Ok()
.append_header(("Cache-Control", "no-store")) .insert_header(("Cache-Control", "no-store"))
.append_header(("Pragam", "no-cache")) .insert_header(("Pragma", "no-cache"))
.insert_header(("access-control-allow-origin", "*"))
.json(token_response)) .json(token_response))
} }