Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8636

Swagger2Feature: Can't set url in UI through SwaggerUiConfig

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.0, 3.4.5
    • 3.4.6, 3.5.1, 4.0.0
    • None
    • None
    • Unknown

    Description

      I've included the swagger ui by adding a dependency on org.webjars:swagger-ui.

      The Documentation mentions that the swagger UI can be configured through SwaggerUiConfig which sets config as query params.

       

      Since swagger ui 4.1.3 passing the default url as query parameter, e.g. `?url=swagger.json` is disabled by default due to security concerns. Instead the default swagger PetStore definition is loaded.

       

      It's possible to restore the old behaviour by setting queryConfigEnabled, but I couldn't find a way to set this. Of course enabling this also brings back the security issue.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            reta Andriy Redko
            mksplg Markus Plangg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment