mirror of
https://github.com/fmhy/edit.git
synced 2026-02-18 09:11:33 +11:00
improve
This commit is contained in:
parent
42c29913dc
commit
6da3e1f016
1 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import { corsEventHandler } from 'nitro-cors'
|
||||
import cors from 'nitro-cors'
|
||||
|
||||
export default corsEventHandler((_event) => {}, {
|
||||
const corsHandler = cors({
|
||||
origin: '*',
|
||||
methods: '*'
|
||||
})
|
||||
|
||||
export default corsHandler
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue