From cf7e75de76c228b092e5d4f072f6a0a388620879 Mon Sep 17 00:00:00 2001 From: handingkang <18791985373@163.com> Date: Thu, 23 May 2024 12:38:46 +0800 Subject: 添加跨域支持 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index b1ed6a5..ee6dda0 100644 --- a/server/app.py +++ b/server/app.py @@ -11,7 +11,7 @@ from apps.task import bp as taskbp # 注册蓝图 app = APIFlask(__name__, template_folder='./static/templates') # 跨域支持 -CORS(app) +CORS(app, origins='*') # 目标状态获取接口 app.register_blueprint(targetbp) # 代理接口 -- cgit v1.2.3