Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Update config settings for security and key persistence
KrzysztofPajak40091a903e19
diff --git a/src/Web/Grand.Web/App_Data/appsettings.json b/src/Web/Grand.Web/App_Data/appsettings.jsonindex 95c709df4..84a46fdf6 100644--- a/src/Web/Grand.Web/App_Data/appsettings.json+++ b/src/Web/Grand.Web/App_Data/appsettings.json@@ -52,7 +52,7 @@//In some cases, it might not be possible to add forwarded headers to the requests proxied to the app."ForceUseHTTPS": false,-+//AllowedHosts, is used for host filtering to bind your app to specific hostnames"AllowedHosts": "*",@@ -78,7 +78,7 @@//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys- "KeyPersistenceLocation": null,+ "KeyPersistenceLocation": "/App_Data/DataProtectionKeys",//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760"CookieAuthExpires": 8760,@@ -93,12 +93,12 @@//Always setting the Secure flag is the most restrictive and most secure option.//This is the one you should be targeting if your production environment fully runs on HTTPS"CookieSecurePolicyAlways": false,-+//Controls whether or not a cookie is sent with cross-site requests, providing some protection against cross-site request forgery attacks//Available values Unspecified, None, Lax, Strict"CookieSameSite": "Lax","CookieSameSiteExternalAuth": "None",-+//Enabling this setting allows for verification of access to a specific controller and action in the admin panel using menu configuration."AuthorizeAdminMenu": false},