Skip to main content
5 votes

What is equivalent to IsExperienceEditor in the ASP.NET Core SDK?

It is possible by using ISitecoreRenderingContext. Although it's not a static class anymore, so you need to add to your DI container and inject it to your class and/or view. 1. Startup.cs: public void ...
Tamás Tárnok's user avatar
3 votes

Is Sitecore CD role needed in headless setup with Rendering Host?

Both roles are still required in non-development environments. As per Sitecore FAQ on this page: With Sitecore Headless Development, you run the following instances: A Content Delivery (CD) instance ...
Anna Gevel's user avatar
  • 1,973
3 votes
Accepted

What is equivalent to IsExperienceEditor in the ASP.NET Core SDK?

It seems that the originally accepted answer is no longer true. Adding the ISitecoreRenderingContext to DI in startup.cs as described in step 1 does allow ISitecoreRenderingContext to be injected into ...
TheHvidsten's user avatar
  • 1,004
3 votes

How do you render Headless ASP.NET to present a Sitecore page as 404?

You can use: return Redirect("/ErrorPages/404"); or return Redirect("http://myErrorPage"); instead of: return View("NotFound", request.Response.Content.Sitecore.Context); ...
Alexander's user avatar
  • 1,273
2 votes

Is Sitecore CD role needed in headless setup with Rendering Host?

on top of what Anna already mentioned, you'll see that the template comes with the Rendering Host pointing to CM by default (SITECORE_API_HOST = "http://cm"). I'd then recommend switching to ...
Miguel Minoldo's user avatar
2 votes
Accepted

Sitecore JSS react SSR - how to setup higher environment(UAT/PROD) rendering host for experience editor

You are using below things,to concurrence. React as your front end SSR headless proxy NODEJS - to server your website in SSR mode Looking for experience editor support with http rendering! Question ...
Andi AR's user avatar
  • 763
2 votes

How do you render Headless ASP.NET to present a Sitecore page as 404?

We have implemented it as a custom Pipeline with Sitecore JSS therefore it will work also with ASP.NET Headless. Of course in integrated mode. In headless mode you need to approach this with different ...
Peter Procházka's user avatar
1 vote

Error JSS Editing Secret

Once you have checked everything is OK with the JSS_EDITING_SECRET configuration, please follow these steps to solve your issue: Leave blank these fields on the Settings item: Create a local ...
Freddy Rueda's user avatar
1 vote

Allow CORS request from CM to Rendering host

Solved adding Access-Control-Allow-Methods header: async headers() { return [ { source: '/_next/static/media/:path*', headers: [ { key: 'Access-Control-Allow-Origin', value: '...
Serhii Shushliapin's user avatar
1 vote

How do you fix an access denied error debugging a dotnet app in a container?

Let's say you start with a default console app with Docker support. It would seem that the access required in the container to run the remote debugger has changed. FROM mcr.microsoft.com/dotnet/...
Michael West's user avatar
  • 18.2k
1 vote

Sitecore CM returning 404 when running in docker container

So, it turns out that the init.ps1 script generates the certificates using wildcard characters, which get updated in traefik -> certs folder. Due to this, I was facing the SSL issue. To resolve ...
Anvay's user avatar
  • 103
1 vote

Sitecore CM returning 404 when running in docker container

My approach is to only serve traffic to the browsers through Traefik with HTTPS only. There is an issue when redirecting from Identity Server back to Content Management during the login process. To ...
Vincent Lui's user avatar
1 vote

ASP.NET Core Rendering SDK , Every time i have to run docker-compose restart rendering cm to reflect the changes

This appears to be a bug in a recent update to Docker Desktop or Windows. I'm able to reproduce the issue in a simple Dockerized ASP.NET Core application. It appears others may be witnessing similar ...
nickwesselman's user avatar
1 vote

Experience Editor issue in JSS + SXA + .NET Core Rendering Host solution

By default, JSS uses a jss Layout Service configuration. And when we just created a new Rendering Host from sitecore.aspnet.gettingstarted template, Rendering Host has LayoutServicePath setting which ...
Artem Prashkovich's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible