Rather than applying this configuration globally I would like to configure the blankie plugin at the route level so the content security policy is defined as strictly as possible
This would not only enable my specific use case about control route specific plugins but would also allow any other customization of the route configuration that users of this plugin may desire.
For security reasons, I would like the swagger ui to include a content security policy. To do this we can use a hapi plugin called blankie.
The following is a plugin configuration and is applied globally to all routes
Rather than applying this configuration globally I would like to configure the blankie plugin at the route level so the content security policy is defined as strictly as possible
This is achievable in the hapi ecosystem by the plugins route option
it would be ideal if the hapi-swaggered-ui plugin options exposed a mechanism to control the route options
for example
This would not only enable my specific use case about control route specific plugins but would also allow any other customization of the route configuration that users of this plugin may desire.