common: make CORS origins configurable

This commit is contained in:
Abdullah Atta
2023-01-05 19:41:25 +05:00
parent 50c06fc11d
commit 38c410db58
5 changed files with 14 additions and 12 deletions
+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)
{