mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-06-10 23:17:46 +02:00
common: expose x-object-size & content-length header via cors
This commit is contained in:
@@ -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