Skip to content

Commit e53568a

Browse files
authored
Merge pull request #22 from onaio/fix-cors-origins-bug
Change CORS_ORIGIN -> CORS_ORIGINS
2 parents d4aac19 + fbe2029 commit e53568a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function build() {
8282
})
8383

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

8787
// OPTIONAL RATE LIMITER
8888
if ("RATE_MAX" in process.env) {

0 commit comments

Comments
 (0)