Can't call external API from Swagger UI inside Gitlab. Error with Content Security Policy

Viewed 384

I’m trying to use an OpenAPI file into GitLab (which runs the UI for my file) but when I use the feature Try Out/Execute from Swagger UI (which sends a request to an external API) I get an error with Content Security Privacy.

My OpenAPI works on Swagger Editor online, and in Gitlab don’t. I think that I need to set this external URL but I have no idea where to do it. Maybe something in my OpenAPI code? Or a setting in GitLab?

The error:

enter image description here

1 Answers

Just change a file name to:

openapi.yaml

Related