Skip to content

Commit

Permalink
Merge pull request #22 from onaio/fix-cors-origins-bug
Browse files Browse the repository at this point in the history
Change CORS_ORIGIN -> CORS_ORIGINS
  • Loading branch information
FrankApiyo authored Dec 13, 2024
2 parents d4aac19 + fbe2029 commit e53568a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function build() {
})

// CORS
fastify.register(require('@fastify/cors'), { origin: typeof process.env.CORS_ORIGIN === 'string' ? process.env.CORS_ORIGINS.split(",") : process.env.CORS_ORIGINS })
fastify.register(require('@fastify/cors'), { origin: typeof process.env.CORS_ORIGINS === 'string' ? process.env.CORS_ORIGINS.split(",") : process.env.CORS_ORIGINS })

// OPTIONAL RATE LIMITER
if ("RATE_MAX" in process.env) {
Expand Down

0 comments on commit e53568a

Please sign in to comment.