Closed
Description
Hello I made nuxt-nitro demo clone without nitro. URL is here. https://nuxt-without-nitro-demo.vercel.app/
I try with /api/hello
made with h3, It failed after deploy. When I test on local, It make error.
ERROR Cannot set headers after they are sent to the client 20:39:12
at ServerResponse.setHeader (_http_outgoing.js:518:11)
at sendError (node_modules/h3/dist/index.js:502:7)
at node_modules/h3/dist/index.js:514:14
My server middleware is https://github.com/ChangJoo-Park/nuxt-without-nitro-demo/blob/main/server/hello.js#L4-L8.
I tested with remove res.setHeader('Access-Control-Allow-Origin', '*')
. but it fails too.
Metadata
Metadata
Assignees
Labels
No labels