Przeglądaj źródła

Updating CORS policy to expose content-disposition header to client

Lukas Angerer 3 lat temu
rodzic
commit
aa5f11eaef
1 zmienionych plików z 1 dodań i 0 usunięć
  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");
 			});
 		});