mirror of
https://github.com/fmhy/edit.git
synced 2026-02-20 02:01:12 +11:00
fix cors
This commit is contained in:
parent
3a71e8f164
commit
7213a1f4af
5 changed files with 26 additions and 5 deletions
6
.vitepress/middleware/cors.ts
Normal file
6
.vitepress/middleware/cors.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { corsEventHandler } from "nitro-cors";
|
||||
|
||||
export default corsEventHandler((_event) => { }, {
|
||||
origin: "*",
|
||||
methods: "*",
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue