Skip to content

Commit 3717f66

Browse files
authored
Update top domain regexp example.
1 parent 43db447 commit 3717f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/plugins/cors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ import { cors } from '@elysiajs/cors'
140140
141141
const app = new Elysia()
142142
.use(cors({
143-
origin: /\*.saltyaom.com$/
143+
origin: /.*\.saltyaom\.com$/
144144
}))
145145
.get('/', () => 'Hi')
146146
.listen(8080)

0 commit comments

Comments
 (0)