common: make CORS origins configurable

This commit is contained in:
Abdullah Atta committed 2023-01-05 19:41:25 +05:00
1 parent 50c06fc11d
commit 38c410db58
5 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ namespace Notesnook.API
JwtSecurityTokenHandler.DefaultMapInboundClaims = false;
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
services.AddCors();
services.AddDefaultCors();
services.AddDistributedMemoryCache(delegate (MemoryDistributedCacheOptions cacheOptions)
{