Using relative swagger endpoint results in error
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:

Doing so results in error:

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 14fce65f-1337-58cb-2193-8d8e0e62792d
- Version Independent ID: 59222460-a971-e76e-4fe9-23d4d7d768ee
- Content: Get started with Swashbuckle and ASP.NET Core
- Content Source: aspnetcore/tutorials/getting-started-with-swashbuckle.md
- Product: aspnet-core
- Technology: aspnetcore-tutorials
- GitHub Login: @zuckerthoben
- Microsoft Alias: scaddie
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 I'm working with .NET 6.0
What reverse proxy are you using in development?
We are using Nginx with Traefik.