Allow authorization submit from Swagger UI documentations

What does this MR do and why?

This MR relaxes the sandbox restrictions for Swagger UI to make the authorization submit possible. Basic or key authorization is not possible now in gitlab instance.

This was fixed by adding the allow-forms to the iFrame sandbox attribute:

inspired by MR

Screenshots or screen recordings

Authorization is currently blocked with the issue:

Screenshot_from_2022-11-24_16-57-53

After submit name and password credentials shall be saved: Screenshot_from_2022-11-29_10-25-31

Now it only prints error to console: Screenshot_from_2022-11-29_10-24-15

How to set up and validate locally

  1. Create a newopenapi.yml
  2. Submit basic or key authorization
  3. Authorization should be saved

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by DanielC

Merge request reports

Loading