Sample use case, considering we want to limit origin to a specific client app url. One would use cors plugin like the following:
const app = new Elysia()
.use(cors({
origin: 'http://localhost:5173'
}))
.get('/', () => {
return 'Oh hi!'
})
Expected to have Access-Control-Allow-Origin equal to the app url which is http://localhost:5173. But the cors plugin returns empty string instead:

Sample use case, considering we want to limit origin to a specific client app url. One would use cors plugin like the following:
Expected to have

Access-Control-Allow-Originequal to the app url which ishttp://localhost:5173. But the cors plugin returns empty string instead: