cors: add Set-Cookie to exposed headers
Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
parent
4dafd40fcf
commit
2aef9cb7a1
@ -8,7 +8,9 @@ pub mod user;
|
||||
|
||||
pub fn fuel(rocket: Rocket) -> Rocket {
|
||||
let mut rocket = rocket;
|
||||
let cors = CorsOptions::default().to_cors().unwrap();
|
||||
let mut cors_options = CorsOptions::default();
|
||||
cors_options.expose_headers.insert("Set-Cookie".to_owned());
|
||||
let cors = cors_options.to_cors().unwrap();
|
||||
rocket = health::fuel(rocket);
|
||||
rocket = paste::fuel(rocket);
|
||||
rocket = user::fuel(rocket);
|
||||
|
Loading…
Reference in New Issue
Block a user