diff --git a/apps/block_scout_web/lib/block_scout_web/api_router.ex b/apps/block_scout_web/lib/block_scout_web/api_router.ex index f5190067e9..16f36e948f 100644 --- a/apps/block_scout_web/lib/block_scout_web/api_router.ex +++ b/apps/block_scout_web/lib/block_scout_web/api_router.ex @@ -23,6 +23,7 @@ defmodule BlockScoutWeb.ApiRouter do # plug(Guardian.Plug.VerifyHeader, module: BlockScoutWeb.Guardian, error_handler: BlockScoutWeb.GuardianErrorHandler) # plug(CheckAuth) plug(:fetch_session) + plug(:protect_from_forgery) end pipeline :tags_api do @@ -33,6 +34,7 @@ defmodule BlockScoutWeb.ApiRouter do # halt: false # ) plug(:fetch_session) + plug(:protect_from_forgery) end alias BlockScoutWeb.Account.Api.V1.{TagsController, UserController}