BEXIS2 / Core

This is the public code repository of the BEXIS2 data management software. It contains only modules, components, and packages of the core system. Contributed modules and components will be available in separate repositories. For more information on BEXIS2, please visit our website.
https://bexis2.github.io/
17 stars 13 forks source link

HTTPS Scheme for Swagger API #971

Closed sventhiel closed 1 year ago

sventhiel commented 2 years ago

Is there an existing issue for this?

What is going wrong?

By default, Swagger API brings up the endpoint with http only. Even though the website itself is running in https.

How is it supposed to work?

Similar to the web server hosting, swagger should use https scheme.

How can it be reproduced?

  1. Just go to the Swagger API endpoint (e.g. https://demo.bexis2.uni-jena.de/apihelp/index)
  2. The scheme for Swagger is only http instead of https.
  3. Reset the value manually to 'https://' to resolve the issue.

Do you get any exceptions?

It is not really an exception, but more an information about the non-functioning endpoint.

Can't read from server. It may not have the appropriate access-control-origin settings.

What kind of system do you use?

No response

Which task(s) is/are related to this issue?

No response

DavidBlaa commented 2 years ago

https://stackoverflow.com/questions/40041927/how-to-change-swagger-documentation-base-url

DavidBlaa commented 2 years ago

the issue currently only occurs on our server with revese proxy. just in case, we will create and set a swagger url in the web config

geofranzi commented 1 year ago

If there are other files in the folder, it does not work. Maybe at least reduce scanned files to *.xml?