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:
parent
1a1a41d5dc
commit
c9d41f2517
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user