summaryrefslogtreecommitdiff
path: root/server/app.py
diff options
context:
space:
mode:
authorhandingkang <[email protected]>2024-05-23 12:38:46 +0800
committerhandingkang <[email protected]>2024-05-23 12:38:46 +0800
commitcf7e75de76c228b092e5d4f072f6a0a388620879 (patch)
treee2440461130d507b12469ddf1d2a0323decfe5ef /server/app.py
parent65a2b2d34ce6a7337715a27391753ef6c6ab3537 (diff)
添加跨域支持
Diffstat (limited to 'server/app.py')
-rw-r--r--server/app.py2
1 files changed, 1 insertions, 1 deletions
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)
# 代理接口