Explorar el Código

Updating CORS policy to expose content-disposition header to client

Lukas Angerer hace 3 años
padre
commit
aa5f11eaef
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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");
 			});
 		});