app.use("*", async (c, next) => {
const corsMiddleware = cors({
origin: [
"http://localhost:3000",
"https://develop.scheduling-next-front-end.pages.dev",
],
allowMethods: ["GET", "OPTIONS", "POST", "PUT", "DELETE"],
credentials: true,
});
return corsMiddleware(c, next);
});
app.use("*", async (c, next) => {
const corsMiddleware = cors({
origin: [
"http://localhost:3000",
"https://develop.scheduling-next-front-end.pages.dev",
],
allowMethods: ["GET", "OPTIONS", "POST", "PUT", "DELETE"],
credentials: true,
});
return corsMiddleware(c, next);
});