Skip to content

Scheduling infrastructure for absolutely everyone.

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

Agusti Fernandez Pardo57aeb19c66a0
diff --git a/pages/api/docs.ts b/pages/api/docs.ts
index 356967d4a20..e87c6c1f5c5 100644
--- a/pages/api/docs.ts
+++ b/pages/api/docs.ts
@@ -21,7 +21,7 @@ const swaggerHandler = withSwagger({
components: {
securitySchemes: { ApiKeyAuth: { type: "apiKey", in: "query", name: "apiKey" } },
},
- security: [{ apiKey: [] }],
+ security: [{ ApiKeyAuth: [] }],
},
apiFolder: "pages/api",
});