Swagger UI through port redirect

Yes, the problem is that XData thinks your server is in port 80, that's why it provides the Swagger UI trying to get the json from port 80.

You can use Forward middleware (if your router provides the correct headers), or use OnGetAbsoluteUrl event to mannually provide the correct "public" URL for your Swagger endpoint.

More information here: