Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 258b29f

Browse files
committed
CORS headers update
1 parent 39d83c7 commit 258b29f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ issuerApi.get('/kcc', async (req, res) => {
243243
req.query.did as string,
244244
)
245245

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

0 commit comments

Comments
 (0)