The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
20
stars
16
forks
source link
Status code 401 for /GetaNotFoundHandlerAdmin on Optimizely DXP #61
We are using the NotFoundHandler for a site in Optimizely DXP. We have recently updated to version 5.0.1.0 because of a security issue in the earlier version we used. We now get a 401 on the iframe url [DXP-url]/GetaNotFoundHandlerAdmin
It is .NET 6, CMS 12
We have mapped role settings in appsettings where we map from an openid provider role to CmsAdmins and Adminstrators but we do not get access to the plugin. We have access to everything else that we should when we have CmsAdmin and Adminstrators roles.
Our configuration in the Startup class is as follows:
services.AddNotFoundHandler(o =>
{
o.UseSqlServer(_configuration.GetConnectionString("EPiServerDB"));
o.HandlerMode = FileNotFoundMode.On;
o.IgnoredResourceExtensions = new[] { "jpg", "gif", "png", "css", "js", "ico", "swf", "woff", "svg" };
o.Logging = LoggerMode.On;
o.LogWithHostname = true;
},
policy =>
{
policy.RequireRole("Administrators", "CmsAdmins");
});
policy was removed for testing purposes. Didn't help.
Any suggestions? Are we missing something in the configuration?
We are using the NotFoundHandler for a site in Optimizely DXP. We have recently updated to version 5.0.1.0 because of a security issue in the earlier version we used. We now get a 401 on the iframe url [DXP-url]/GetaNotFoundHandlerAdmin It is .NET 6, CMS 12 We have mapped role settings in appsettings where we map from an openid provider role to CmsAdmins and Adminstrators but we do not get access to the plugin. We have access to everything else that we should when we have CmsAdmin and Adminstrators roles. Our configuration in the Startup class is as follows: services.AddNotFoundHandler(o => { o.UseSqlServer(_configuration.GetConnectionString("EPiServerDB")); o.HandlerMode = FileNotFoundMode.On; o.IgnoredResourceExtensions = new[] { "jpg", "gif", "png", "css", "js", "ico", "swf", "woff", "svg" }; o.Logging = LoggerMode.On; o.LogWithHostname = true; }, policy => { policy.RequireRole("Administrators", "CmsAdmins"); }); policy was removed for testing purposes. Didn't help.
Any suggestions? Are we missing something in the configuration?