When calling /swagger for the first time the basePath and host attributes are set forever.
When "my" swagger is behind a reverse proxy mapping the plackup URL http://127.0.0.1:5000/ to e.g. https://1.2.3.4/dummy the host will be 127.0.0.1:5000 instead of 1.2.3.4 and basePath becomes / instead of /dummy.
When calling
/swagger
for the first time thebasePath
andhost
attributes are set forever.When "my" swagger is behind a reverse proxy mapping the plackup URL
http://127.0.0.1:5000/
to e.g.https://1.2.3.4/dummy
thehost
will be127.0.0.1:5000
instead of1.2.3.4
andbasePath
becomes/
instead of/dummy
.