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
Is your feature request related to a problem? Please describe.
Starting with Springdoc OpenAPI 1.6.0, there are two new parameters added do the last <script> tag added in the swagger index.html. One of them is the parameter "configUrl", which is dynamic depending on the application. Up until Springdoc OpenAPI 1.5.13 this was not included and resulted in a standardized CSP script-hash for all Applications on one server with Springdoc's swagger index.html. With this change, every swagger index.html needs their own CSP script-hash
Before:
<script>window.onload=function(){// Begin Swagger UI call regionconstui=SwaggerUIBundle({url: "https://petstore.swagger.io/v2/swagger.json",dom_id: '#swagger-ui',deepLinking: true,presets: [SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset],plugins: [SwaggerUIBundle.plugins.DownloadUrl],layout: "StandaloneLayout"});// End Swagger UI call regionwindow.ui=ui;};</script>
Not sure if its possible, but I would prefer for this configUrl parameter to be removed again or for the inline-script to be able to be offloaded into another file, so I dont have to define the CSP for it. (I'm aware that this is an issue of swagger-ui in the first place though, but maybe I just need some more detailed explanation on why this started with 1.6.0)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Before:
After:
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: