Skip to content

Commit

Permalink
Merge pull request #20 from decentraland/feat/debug-cors-issue
Browse files Browse the repository at this point in the history
feat: debug CORS issue
  • Loading branch information
juanmahidalgo authored Nov 26, 2024
2 parents dbaa87e + a80f3b5 commit becc02f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export async function initComponents(): Promise<AppComponents> {
})
const corsString = await config.requireString('CORS_METHODS')
const validCORSJsonString = corsString.replace(/'/g, '"')
console.log('corsString: ', corsString)
console.log('validCORSJsonString: ', validCORSJsonString)
console.log('JSON.parse(validCORSJsonString): ', JSON.parse(validCORSJsonString))

const cors = {
origin: (await config.requireString('CORS_ORIGIN')).split(';').map(origin => new RegExp(origin)),
Expand Down

0 comments on commit becc02f

Please sign in to comment.