Jump to content

Swagger doesnt work with diff public ports than local


Recommended Posts

Posted

When running the the "try now" endpoints from the swagger UI, the code appears to be using the local ip instead of the public ip.  When you run this behind a reverse proxy you cant access the local ports.  But if you copy the command and run it via postman/browser and remove/update the :8096 port to the public port it works fine.

Posted

It should be using whatever address you came in from with the web app.

Posted

It looks like this and the port 8096 appears in the server dropdown box

image.thumb.png.e7ba28ef15367dd96f3b92f3ca5f1894.png

image.png.3ab59d1e3ce61d2cf6f7aed66f31c017.png

image.thumb.png.c61680b28dce49e8bb81feed90c331f2.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...