Преглед изворни кода

Updating CORS policy to expose content-disposition header to client

Lukas Angerer пре 3 година
родитељ
комит
aa5f11eaef
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/RunnersMeet.Server/AppServer.cs

+ 1 - 0
src/RunnersMeet.Server/AppServer.cs

@@ -28,6 +28,7 @@ public class AppServer
 				policy.WithOrigins("http://localhost:4200");
 				policy.WithHeaders("Authorization", "Content-Type");
 				policy.AllowAnyMethod();
+				policy.WithExposedHeaders("Content-Disposition");
 			});
 		});