A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi Jonas,
If you want to prevent to access login, edit mode, admin mode completely then I suggest you other simple solution as following:
var publicFront = configuration.GetValue<bool?>("PublicFront");
if (publicFront.GetValueOrDefault(true))
{
app.Use(async (context, requestDelegate) =>
{
if (context.Request.Path.StartsWithSegments("/util", StringComparison.OrdinalIgnoreCase)
|| context.Request.Path.StartsWithSegments("/episerver", StringComparison.OrdinalIgnoreCase))
{
context.Response.StatusCode = (int)HttpStatusCode.Forbidden;
await context.Response.WriteAsync("Forbidden: Access Denied");
return;
}
await requestDelegate(context);
});
}
Hi.
Having followed the instructions on https://docs.developers.optimizely.com/content-management-system/docs/decoupled-setup I still have some issues.
Could I remove the login all together?