Skip to content

Commit 824c998

Browse files
committed
chore: add support for localhost on hub api routes
1 parent e47b004 commit 824c998

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/cors.dev.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export default eventHandler((event) => {
55
handleCors(event, {
66
methods: '*',
77
origin: [
8-
'https://admin.hub.nuxt.com'
8+
'https://admin.hub.nuxt.com',
9+
'https://hub.nuxt.dev',
10+
/http:\/\/localhost:\d+/
911
]
1012
})
1113
})

0 commit comments

Comments
 (0)