diff --git a/config/oathkeeper/rules/dev.yaml b/config/oathkeeper/rules/dev.yaml index a070cab..a5e67d8 100644 --- a/config/oathkeeper/rules/dev.yaml +++ b/config/oathkeeper/rules/dev.yaml @@ -112,3 +112,22 @@ handler: allow mutators: - handler: noop + +- id: "dev:api-swagger:anonymous" + upstream: + preserve_host: true + url: "http://api:3000" + match: + url: "http://api.nx-next-nest-prisma-ory-template.127.0.0.1.sslip.io/swagger/<.*>" + methods: + - GET + - POST + - PUT + - DELETE + - PATCH + authenticators: + - handler: anonymous + authorizer: + handler: allow + mutators: + - handler: noop