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

View File

@@ -62,7 +62,7 @@ namespace Streetwriters.Messenger
JwtSecurityTokenHandler.DefaultMapInboundClaims = false;
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
services.AddCors();
services.AddDefaultCors();
services.AddDistributedMemoryCache(delegate (MemoryDistributedCacheOptions cacheOptions)
{
cacheOptions.SizeLimit = 262144000L;