diff --git a/browser/templates/_types/root/_sign_in.html b/browser/templates/_types/root/_sign_in.html index 3495518..d8777ae 100644 --- a/browser/templates/_types/root/_sign_in.html +++ b/browser/templates/_types/root/_sign_in.html @@ -1,6 +1,6 @@ diff --git a/infrastructure/factory.py b/infrastructure/factory.py index 7394dc9..114c9dc 100644 --- a/infrastructure/factory.py +++ b/infrastructure/factory.py @@ -127,6 +127,13 @@ def create_base_app( await protect() # --- after-request hooks --- + # Clear old shared-domain session cookie (migration from .rose-ash.com) + @app.after_request + async def _clear_old_shared_cookie(response): + if request.cookies.get("blog_session"): + response.delete_cookie("blog_session", domain=".rose-ash.com", path="/") + return response + @app.after_request async def _add_hx_preserve_search_header(response): value = request.headers.get("X-Search")