From 1305a485a01c167ea90d9486340340ee99368bb9 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Mon, 27 May 2024 11:41:05 -0700 Subject: [PATCH] Updated CSRF plug to not throw an exception --- lib/pinchflat_web/router.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pinchflat_web/router.ex b/lib/pinchflat_web/router.ex index 1e1ee7d..daf3b9a 100644 --- a/lib/pinchflat_web/router.ex +++ b/lib/pinchflat_web/router.ex @@ -10,7 +10,7 @@ defmodule PinchflatWeb.Router do plug :fetch_session plug :fetch_live_flash plug :put_root_layout, html: {PinchflatWeb.Layouts, :root} - plug :protect_from_forgery + plug :protect_from_forgery, with: :clear_session plug :put_secure_browser_headers plug :allow_iframe_embed end