修改跨域配置
This commit is contained in:
@@ -19,6 +19,7 @@ export async function createServer() {
|
||||
await app.register(cors, {
|
||||
origin: true,
|
||||
credentials: true,
|
||||
methods: ["GET", "HEAD", "POST", "PATCH", "DELETE"],
|
||||
});
|
||||
|
||||
await app.register(jwt, {
|
||||
|
||||
Reference in New Issue
Block a user