Open niels013 opened 3 years ago
👀 I'm experiencing the same issue.
Any update on the solution?
I wasn't able to replicate but I am guessing you have CSP headers enabled. As per this issue https://github.com/scottie1984/swagger-ui-express/issues/255 I cannot resolve this initially so the only option would be to disable CSP checks for swagger-ui-express routes until a fix is implemented in swagger-ui.
Project setup
Adding swagger UI by adding the following code:
Expected behaviour
After succesfully authenticating using the OAUTH2 implicit flow, load redirect HTML and then redirect back to swagger UI with access token filled in.
Actual behaviour
When loading the redirect HTML page, it never returns to the swagger UI and gives an error.
Screenshots