diff options
author | Kyomotoi <[email protected]> | 2022-06-22 20:29:07 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-06-22 20:29:07 +0800 |
commit | 0218b8e4c32e4bed45d0aaa230c1c85ee21efd2c (patch) | |
tree | d7325b0d09091f9bf7d5de558a2de73a421c0360 | |
parent | e676d6e6d4d42db55a4c6811e102747eee401f6a (diff) | |
download | ATRI-0218b8e4c32e4bed45d0aaa230c1c85ee21efd2c.tar.gz ATRI-0218b8e4c32e4bed45d0aaa230c1c85ee21efd2c.tar.bz2 ATRI-0218b8e4c32e4bed45d0aaa230c1c85ee21efd2c.zip |
🔒️ 规范后端内容
-rw-r--r-- | ATRI/plugins/console/driver/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/console/driver/__init__.py b/ATRI/plugins/console/driver/__init__.py index 3568197..22afd4a 100644 --- a/ATRI/plugins/console/driver/__init__.py +++ b/ATRI/plugins/console/driver/__init__.py @@ -34,8 +34,8 @@ def register_routes(driver: Driver): CORSMiddleware, allow_origins=origins, allow_credentials=True, - allow_methods=["*"], - allow_headers=["*"], + allow_methods=["GET", "POST", "PUT"], + allow_headers=["Content-Type"], ) app.get(CONSOLE_API_URI)(handle_base_uri) |