Skip to content

Commit

Permalink
CORS headers update
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Aug 19, 2024
1 parent 39d83c7 commit 258b29f
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 @@ -243,7 +243,8 @@ issuerApi.get('/kcc', async (req, res) => {
req.query.did as string,
)

res.setHeader('Access-Control-Allow-Origin', '*') // Explicitly set CORS header
res.set('Access-Control-Allow-Origin', '*')
console.log('kcc request headers:', res.getHeaders()) // Log headers
res.send(credentials)
})

Expand Down

0 comments on commit 258b29f

Please sign in to comment.