Skip to content

Commit 03ca021

Browse files
committed
fix: always allow dev server
1 parent 249ff87 commit 03ca021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/cached-cors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function defineCachedCorsEventHandler(eventHandler: EventHandler, cacheOp
1010
preflight: {
1111
statusCode: 204,
1212
},
13-
origin: [import.meta.dev ? 'http://localhost:3000' : 'https://unsight.dev', 'https://github.com'],
13+
origin: ['http://localhost:3000', 'https://unsight.dev', 'https://github.com'],
1414
})
1515

1616
if (handled || event.method !== 'GET') {

0 commit comments

Comments
 (0)