Hello. I have downloaded the zip version of Swagger-UI from Git. Now I want
to host it from Tomcat locally with my customized .json spec. If I simply
put the whole Swagger-UI folder in the webapps folder of Tomcat, will it
work? And how do I add my own spec into it? Let's say my APIs are running
You do not need to enable CORS if the app and swagger-ui run in the same
> application.
>
>
>
>
>
>
>
> *From: *> on behalf of Sayak
> Paul >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Da
pec in the webapp folder, it’d be hosted just like
> swagger-ui and have a URL – feed that to it.
>
> CORS is only needed if the host and port of the javascript and the target
> calls are not the same, by definition.
>
>
>
>
>
>
>
> *From: *> on behalf
agger one.
> As long as they’re in the same application, you won’t need CORS.
>
>
>
>
>
>
>
> *From: *> on behalf of Sayak
> Paul >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *
Thanks for the insights. I will get back to you if I get stuck in between.
On Thursday, February 22, 2018 at 8:21:10 PM UTC+5:30, Ron wrote:
>
> The same way you’d construct the url to access swagger-ui within your app.
>
>
>
>
>
>
>
> *From: *> on beha