mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-09-30 18:29:36 +02:00
common: expose x-object-size & content-length header via cors
This commit is contained in:
1 parent
bdd5017394
commit
294d885dbf
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user