This commit is contained in:
maropboia 2024-05-03 11:38:39 +06:00
parent 42c29913dc
commit 6da3e1f016

View file

@ -1,6 +1,9 @@
import { corsEventHandler } from 'nitro-cors' import cors from 'nitro-cors'
export default corsEventHandler((_event) => {}, { const corsHandler = cors({
origin: '*', origin: '*',
methods: '*' methods: '*'
}) })
export default corsHandler