Add CORS on token endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -609,8 +609,9 @@ pub async fn token(
|
||||
};
|
||||
|
||||
Ok(HttpResponse::Ok()
|
||||
.append_header(("Cache-Control", "no-store"))
|
||||
.append_header(("Pragam", "no-cache"))
|
||||
.insert_header(("Cache-Control", "no-store"))
|
||||
.insert_header(("Pragma", "no-cache"))
|
||||
.insert_header(("access-control-allow-origin", "*"))
|
||||
.json(token_response))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user