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

Commit 89461d1

Browse files
committed
debugging cors errors
1 parent 4ff9d54 commit 89461d1

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
@@ -225,10 +225,10 @@ const myPFIServer5 = createPFIServer({bearerDid: config.pfiDid[4], port: config.
225225
const issuerApi = express()
226226
const issuerPort = 3001
227227

228-
issuerApi.use(snooper())
229228

230229
// Allow cross-origin requests
231230
issuerApi.use(cors())
231+
issuerApi.use(snooper())
232232

233233
issuerApi.get('/', (req, res) => {
234234
res.send(
@@ -242,6 +242,7 @@ issuerApi.get('/kcc', async (req, res) => {
242242
req.query.country as string,
243243
req.query.did as string,
244244
)
245+
console.log('kcc request headers:', res.getHeaders()) // Log headers
245246
res.send(credentials)
246247
})
247248

0 commit comments

Comments
 (0)