fix: add production domain to CORS whitelist
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
7b8f4331f6
commit
b8ecaf44d0
@ -20,7 +20,7 @@ const app = new Hono();
|
||||
|
||||
// Global middleware
|
||||
app.use('*', cors({
|
||||
origin: ['http://localhost:5173', 'http://localhost:3201'],
|
||||
origin: ['http://localhost:5173', 'http://localhost:3201', 'https://devperf.airlabs.art'],
|
||||
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||
allowHeaders: ['Content-Type', 'Authorization'],
|
||||
}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user