You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project where we are using Swagger 1.5. The issue we're running into is on our staging server, Swagger still looks at https://localhost:XXXX/api/swagger.json for the relevant swagger file.
We're using the web.xml configuration with a Spring Servlet and we're making use of Java annotations. Here's an example of what we have:
As pointed here here on the websites documentation
A possible way to target multiple hosts is to omit the host and schemes from your specification and serve it from each host. In this case, each copy of the specification will target the corresponding host.
But Swagger always looks at localhost:XXXX.
The text was updated successfully, but these errors were encountered:
Hello,
I'm working on a project where we are using Swagger 1.5. The issue we're running into is on our staging server, Swagger still looks at
https://localhost:XXXX/api/swagger.json
for the relevant swagger file.We're using the web.xml configuration with a Spring Servlet and we're making use of Java annotations. Here's an example of what we have:
We also have a
swagger.yaml
file at the root of our project that's more or less this:As pointed here here on the websites documentation
But Swagger always looks at
localhost:XXXX
.The text was updated successfully, but these errors were encountered: