We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cac1e6 commit 4e5644bCopy full SHA for 4e5644b
index.js
@@ -88,7 +88,7 @@ async function build() {
88
})
89
90
// CORS
91
- fastify.register(require('@fastify/cors'), { origin: typeof process.env.CORS_ORIGIN === 'string' ? JSON.parse(process.env.CORS_ORIGINS) : process.env.CORS_ORIGINS })
+ fastify.register(require('@fastify/cors'), { origin: typeof process.env.CORS_ORIGIN === 'string' ? process.env.CORS_ORIGINS.split(",") : process.env.CORS_ORIGINS })
92
93
// OPTIONAL RATE LIMITER
94
if ("RATE_MAX" in process.env) {
0 commit comments