test before push ....

This commit is contained in:
2025-09-29 01:15:00 +02:00
parent e656893c68
commit d050afff13

View File

@@ -14,13 +14,14 @@ def create_app():
"http://127.0.0.1:3000" "http://127.0.0.1:3000"
] ]
CORS(app, supports_credentials=True, origins=origins) CORS(app, supports_credentials=True, origins=origins)
env = os.environ.get('FLASK_ENV', 'default')
if env == "production": if env == "production":
app.config.update(SESSION_COOKIE_SAMESITE="None", SESSION_COOKIE_SECURE=True) app.config.update(SESSION_COOKIE_SAMESITE="None", SESSION_COOKIE_SECURE=True)
else: else:
app.config.update(SESSION_COOKIE_SAMESITE="Lax", SESSION_COOKIE_SECURE=False) app.config.update(SESSION_COOKIE_SAMESITE="Lax", SESSION_COOKIE_SECURE=False)
env = os.environ.get('FLASK_ENV', 'default')
app.config.from_object(config[env]) app.config.from_object(config[env])
app.register_blueprint(sse, url_prefix='/stream') app.register_blueprint(sse, url_prefix='/stream')