Skip to content

Commit

Permalink
debugging cors errors
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Aug 19, 2024
1 parent 89461d1 commit 39d83c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ issuerApi.get('/kcc', async (req, res) => {
req.query.country as string,
req.query.did as string,
)
console.log('kcc request headers:', res.getHeaders()) // Log headers

res.setHeader('Access-Control-Allow-Origin', '*') // Explicitly set CORS header
res.send(credentials)
})

Expand Down

0 comments on commit 39d83c7

Please sign in to comment.