AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Using relative swagger endpoint results in error

Open kolinekp opened this issue 4 years ago • 4 comments

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.

kolinekp avatar Mar 25 '22 15:03 kolinekp

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?

wadepickett avatar Mar 26 '22 04:03 wadepickett

@wadepickett I'm working with .NET 6.0

kolinekp avatar Mar 26 '22 11:03 kolinekp

What reverse proxy are you using in development?

Rick-Anderson avatar May 18 '22 02:05 Rick-Anderson

We are using Nginx with Traefik.

kolinekp avatar May 18 '22 08:05 kolinekp