irlandrew
cors header issue
Used cors from hono, as wiki says:
app.use(
'*',
cors({
origin: ['http://localhost:5173'],
allowHeaders: ['Content-Type', 'Authorization'],
allowMethods: ['GET', 'POST', 'OPTIONS'],
credentials: true,
})
);
at the beginning and worked for me
11 replies