mirror of
https://github.com/fmhy/edit.git
synced 2026-01-11 02:46:16 +00:00
hello world, again
This commit is contained in:
11
api/middleware/cors.ts
Normal file
11
api/middleware/cors.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { corsEventHandler } from 'nitro-cors'
|
||||
|
||||
export default corsEventHandler(
|
||||
(_event) => {
|
||||
/** no-op */
|
||||
},
|
||||
{
|
||||
origin: '*',
|
||||
methods: '*'
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user