Merge pull request #2051 from YunoHost/extend

Add withcredentials to swagger
This commit is contained in:
ljf (zamentur) 2022-08-06 23:01:59 +02:00 committed by GitHub
commit ec27a6ed39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,7 @@ If your app is a PHP or HTML/JS app, you probably should use the `Custom Webapp`
If you use an other techno, you should install it like on a classical debian. If you use an other techno, you should install it like on a classical debian.
To expose the app on the web through nginx and be able to manage access permissions to the webapp, you could use the [`redirect` app](https://github.com/YunoHost-Apps/redirect_ynh/) to create a nginx reverse proxy on your local ip/port running the service. To expose the app on the web through nginx and be able to manage access permissions to the webapp, you could use the [`redirect` app](https://github.com/YunoHost-Apps/redirect_ynh/) to create a nginx reverse proxy on your local ip/port running the service.
!!! You should use the proxy mode of the redirect app and not HTTP redirections mode. !!! You should use the proxy mode of the redirect app and not HTTP redirections mode.

View file

@ -56,6 +56,7 @@ curl -k -i -H "Accept: application/json" \
SwaggerUIBundle.presets.apis, SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset SwaggerUIStandalonePreset
], ],
withCredentials: true,
layout: "StandaloneLayout" layout: "StandaloneLayout"
}); });