Fixes anti-forgery, fixes tempdata, adds front-end security/identity, gets member macro snippets and controllers all working, removes old code, adds more props to the member identity

This commit is contained in:
Shannon
2021-04-09 15:24:12 +10:00
parent 461be27bb1
commit 8ea88a980a
60 changed files with 946 additions and 1693 deletions

View File

@@ -116,7 +116,7 @@ namespace Umbraco.Cms.Web.Common.Views
{
// filter / add preview banner
// ASP.NET default value is text/html
if (Context.Response.ContentType.InvariantContains("text/html"))
if (Context.Response?.ContentType?.InvariantContains("text/html") ?? false)
{
if ((UmbracoContext.IsDebug || UmbracoContext.InPreviewMode)
&& tagHelperOutput.TagName != null