From 5669ce207ce0384ec89a9e250342e4ee354e4a95 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 4 Nov 2025 11:03:09 +0100 Subject: [PATCH] Update flask_server.py --- AppImage/scripts/flask_server.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AppImage/scripts/flask_server.py b/AppImage/scripts/flask_server.py index 919c328..c4e6185 100644 --- a/AppImage/scripts/flask_server.py +++ b/AppImage/scripts/flask_server.py @@ -28,6 +28,9 @@ import jwt from functools import wraps from pathlib import Path +app = Flask(__name__) +CORS(app) # Enable CORS for Next.js frontend + # Authentication configuration AUTH_CONFIG_DIR = Path.home() / ".config" / "proxmenux-monitor" AUTH_CONFIG_FILE = AUTH_CONFIG_DIR / "auth.json" @@ -293,8 +296,8 @@ def auth_change_password(): except Exception as e: return jsonify({"error": str(e)}), 500 -app = Flask(__name__) -CORS(app) # Enable CORS for Next.js frontend +# app = Flask(__name__) +# CORS(app) # Enable CORS for Next.js frontend def identify_gpu_type(name, vendor=None, bus=None, driver=None): """