Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding set to resolve: web_1 | W, [2024-07-31T15:53:28.302636 #1] WARN -- : attack prevented by Rack::Protection::JsonCsrf #130

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

erinesullivan
Copy link
Collaborator

Overview

Code provided by @bertrama:

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/search_dropdown"
 require_relative "lib/models/datastores"
 
 set :logger, S.logger
+set :protection, except: [:json_csrf]
 
 CatalogSolrClient.configure do |config|
   config.solr_url = S.biblio_solr

…WARN -- : attack prevented by Rack::Protection::JsonCsrf``
@erinesullivan erinesullivan added the bug Something isn't working label Aug 1, 2024
@erinesullivan erinesullivan self-assigned this Aug 1, 2024
@erinesullivan erinesullivan merged commit 2d18039 into main Aug 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant