cors: add Set-Cookie to exposed headers
Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user