fix: pass enableCors true to swaggeruireact props doesn't seem to work

pull/9078/head
Agusti Fernandez Pardo 2022-04-29 19:45:33 +02:00
parent c8d776aeb7
commit 57aeb19c66
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const swaggerHandler = withSwagger({
components: { components: {
securitySchemes: { ApiKeyAuth: { type: "apiKey", in: "query", name: "apiKey" } }, securitySchemes: { ApiKeyAuth: { type: "apiKey", in: "query", name: "apiKey" } },
}, },
security: [{ apiKey: [] }], security: [{ ApiKeyAuth: [] }],
}, },
apiFolder: "pages/api", apiFolder: "pages/api",
}); });