C#C
C#13mo ago
RobertGee

Identity Server 4 403 Error

Trying to follow this course and sometimes Identity server works sometimes it does not.

builder.Services.ConfigureApplicationCookie(opt =>
        {
            // Remove same site due to http
            opt.Cookie.SameSite = SameSiteMode.Lax;
        });


The above I was told to configure to allow Http to work.

{
  "profiles": {
    "SelfHost": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:5000"
    }
  }
}

As you can see above I am using http://localhost:5000 but a 403 appears on launchBrowser.

Really nothing has been changed from default Identity Server 4.

Only logs:

[16:58:32 Information] Microsoft.Hosting.Lifetime
Now listening on: http://localhost:5000

[16:58:32 Information] Microsoft.Hosting.Lifetime
Application started. Press Ctrl+C to shut down.

[16:58:32 Information] Microsoft.Hosting.Lifetime
Hosting environment: Development

[16:58:32 Information] Microsoft.Hosting.Lifetime
Content root path: /Volumes/Crucial X9 Pro For Mac/Programming/demo/Carsties/src/IdentityService
Was this page helpful?