From 0218b8e4c32e4bed45d0aaa230c1c85ee21efd2c Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Wed, 22 Jun 2022 20:29:07 +0800 Subject: =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20=E8=A7=84=E8=8C=83=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/console/driver/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ATRI/plugins/console') 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) -- cgit v1.2.3