From 46645b74d7b34422b4bfdb1a75e01820cf86cc0f Mon Sep 17 00:00:00 2001 From: JustIceO7 Date: Tue, 18 Feb 2025 21:28:53 +0000 Subject: [PATCH] FEAT: Added HttpOnly to protect session FEAT: VideoPage chat text now wraps around --- frontend/src/components/Video/ChatPanel.tsx | 2 +- web_server/blueprints/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Video/ChatPanel.tsx b/frontend/src/components/Video/ChatPanel.tsx index 60b2b08..9bc0314 100644 --- a/frontend/src/components/Video/ChatPanel.tsx +++ b/frontend/src/components/Video/ChatPanel.tsx @@ -177,7 +177,7 @@ const ChatPanel: React.FC = ({ {/* Message content */} -
+
{msg.message}
diff --git a/web_server/blueprints/__init__.py b/web_server/blueprints/__init__.py index be59ce4..2179a7c 100644 --- a/web_server/blueprints/__init__.py +++ b/web_server/blueprints/__init__.py @@ -33,6 +33,8 @@ def create_app(): app.config["PROPAGATE_EXCEPTIONS"] = True app.config['GOOGLE_CLIENT_ID'] = getenv("GOOGLE_CLIENT_ID") app.config['GOOGLE_CLIENT_SECRET'] = getenv("GOOGLE_CLIENT_SECRET") + app.config["SESSION_COOKIE_HTTPONLY"] = True + app.config.from_mapping( CELERY=dict(