diff --git a/plugins/api-docs/README.md b/plugins/api-docs/README.md index d5ed198dc1..be98304cfe 100644 --- a/plugins/api-docs/README.md +++ b/plugins/api-docs/README.md @@ -160,6 +160,18 @@ by this plugin. Grab a copy of [oauth2-redirect.html](https://github.com/swagger-api/swagger-ui/blob/master/dist/oauth2-redirect.html) and put it in the `app/public/` directory in order to enable Swagger UI to complete this redirection. +This also may require you to adjust `Content Security Policy` header settings of your backstage application. So javascript on `oauth2-redirect.html` can be executed. + +There are two steps: +1. Open `oauth2-redirect.html` for editing and add `nonce` to the `script` tag. Like this + ``` +