Skip to content

Commit

Permalink
Merge pull request #17 from decentraland/feat/add-credentials-to-cors
Browse files Browse the repository at this point in the history
feat: add credentials: true to cors config
  • Loading branch information
juanmahidalgo authored Nov 25, 2024
2 parents eb439b6 + a2cef63 commit 48b9c5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ export async function initComponents(): Promise<AppComponents> {
})
const cors = {
origin: (await config.requireString('CORS_ORIGIN')).split(';').map(origin => new RegExp(origin)),
methods: await config.requireString('CORS_METHODS')
methods: await config.requireString('CORS_METHODS'),
credentials: true
}

const tracer = createTracerComponent()
const metrics = await createMetricsComponent(metricDeclarations, { config })
const logs = await createLogComponent({ metrics })
Expand Down

0 comments on commit 48b9c5f

Please sign in to comment.