diff options
| author | handingkang <[email protected]> | 2024-05-23 12:38:46 +0800 |
|---|---|---|
| committer | handingkang <[email protected]> | 2024-05-23 12:38:46 +0800 |
| commit | cf7e75de76c228b092e5d4f072f6a0a388620879 (patch) | |
| tree | e2440461130d507b12469ddf1d2a0323decfe5ef | |
| parent | 65a2b2d34ce6a7337715a27391753ef6c6ab3537 (diff) | |
添加跨域支持
| -rw-r--r-- | server/app.py | 2 |
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) # 代理接口 |
