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