common: expose x-object-size & content-length header via cors

This commit is contained in:
Abdullah Atta
2026-06-06 10:18:30 +05:00
parent bdd5017394
commit 294d885dbf
@@ -52,7 +52,8 @@ namespace Streetwriters.Common.Extensions
b.WithOrigins(Constants.NOTESNOOK_CORS_ORIGINS);
b.AllowAnyMethod()
.AllowAnyHeader();
.AllowAnyHeader()
.WithExposedHeaders(["X-Object-Size", "Content-Length"]);
});
});
return services;