feat: cors
This commit is contained in:
@@ -10,10 +10,7 @@ const app = getHono();
|
||||
app.use(
|
||||
"/api/*",
|
||||
cors({
|
||||
origin: (origin) =>
|
||||
origin && /^https:\/\/([a-z0-9-]+\.)?koon\.us$/.test(origin)
|
||||
? origin
|
||||
: "",
|
||||
origin: 'https://money.koon.us',
|
||||
allowMethods: ["POST", "GET", "OPTIONS"],
|
||||
allowHeaders: ["Content-Type", "Authorization"],
|
||||
credentials: true,
|
||||
|
||||
Reference in New Issue
Block a user