How to set Schemes default value to HTTPS
In the browser console I receive this when trying to identify my Swagger UI version:
JSON.stringify(versions)
'{"swaggerUI":{"version":"5.17.14","gitRevision":"g8aa52920","gitDirty":true,"buildTimestamp":"Tue, 28 May 2024 05:23:41 GMT"}}'
Looking in the UI it looks like a 3.x version
My question is as follows:
In the Swagger UI there is a field named Schemes. This field has the values HTTP and HTTPS but always defaults to HTTP and we manually have to set it to HTTPS before starting to use the tool.
How do I for the field Schemes permanently set the default value to be HTTPS?
We have a load balancer between the computer clients and the web server. The load balancer has the certificate and perform https offloading. The communication between the load balancer and the web servers is done with http.
Example how I want it to be can be seen at this web page https://petstore.swagger.io
Where you can see the field Schemes is set to HTTPS as default when accessing the page.
I've searched this forum and other sources trying to find the answer to this question without any luck. Any idea is much appreciated.