This commit is contained in:
Andy Howard
2022-10-12 13:50:38 +01:00
parent dc431e1634
commit 6c853d4091
34 changed files with 250 additions and 42 deletions
@@ -47,7 +47,7 @@ namespace Saxonite.Net.Core.Web.Base.Middleware
// Log action.
//String rawTarget = context.Features.Get<IHttpRequestFeature>().RawTarget;
if (SaxSystem.DebugMode) SaLogger.Debug(fn + " Action: '" + Regex.Replace(context.Request.Path.ToString(), "^/", "") + "'. Method: " + context.Request.Method);
if (SaxSystem.DebugMode) SaLogger.Trace(fn + " Action: '" + Regex.Replace(context.Request.Path.ToString(), "^/", "") + "'. Method: " + context.Request.Method);
// Intercept POST requests and apply anti-forgery test.
if (HttpMethods.IsPost(context.Request.Method))