HTTPS/CORS improvements: Enable CORS for player connections, secure session cookies, add certificate endpoint, nginx CORS headers

This commit is contained in:
Deployment System
2026-01-16 22:29:49 +02:00
parent cf44843418
commit c4e43ce69b
15 changed files with 3497 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_caching import Cache
from flask_cors import CORS
# Initialize extensions (will be bound to app in create_app)
db = SQLAlchemy()
@@ -14,6 +15,7 @@ bcrypt = Bcrypt()
login_manager = LoginManager()
migrate = Migrate()
cache = Cache()
cors = CORS()
# Configure login manager
login_manager.login_view = 'auth.login'