From cbab716dc645f49f5e556d452d8be0a6bb5f82b8 Mon Sep 17 00:00:00 2001 From: "Erin E. Sullivan" Date: Thu, 1 Aug 2024 09:35:46 -0400 Subject: [PATCH] Adding `set` to resolve: `web_1 | W, [2024-07-31T15:53:28.302636 #1] WARN -- : attack prevented by Rack::Protection::JsonCsrf`` --- catalog-browse.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/catalog-browse.rb b/catalog-browse.rb index 3e68331..47c11c9 100644 --- a/catalog-browse.rb +++ b/catalog-browse.rb @@ -23,6 +23,7 @@ require_relative "lib/models/datastores" set :logger, S.logger +set :protection, except: [:json_csrf] CatalogSolrClient.configure do |config| config.solr_url = S.biblio_solr