dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.58k stars 25.29k forks source link

Using relative swagger endpoint results in error #25425

Open kolinekp opened 2 years ago

kolinekp commented 2 years ago

The documentation states, that when using reverse proxy, the Swagger endpoint should be set to a relative path using the ./ prefix. For example, ./swagger/v1/swagger.json as shown in the screenshot bellow: image

Doing so results in error: image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

wadepickett commented 2 years ago

Thanks @kolinekp. This issue is filed on the .NET 2.2 version of this topic . Were you working with .NET 2.2 and the 2.2 topic, or maybe instead with .NET 6.0?

kolinekp commented 2 years ago

@wadepickett I'm working with .NET 6.0

Rick-Anderson commented 2 years ago

What reverse proxy are you using in development?

kolinekp commented 2 years ago

We are using Nginx with Traefik.