From 5c6a37cdc5e962285b41a715ed856d97dcbbf0ba Mon Sep 17 00:00:00 2001 From: Erika Pauwels Date: Mon, 21 Oct 2019 13:02:36 +0200 Subject: [PATCH] Disable json_csrf protection --- web.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web.rb b/web.rb index fa48b86..c6ec70a 100644 --- a/web.rb +++ b/web.rb @@ -12,11 +12,14 @@ include SinatraTemplate::Utils -configure do # backwards compatibility +configure do + # backwards compatibility set :graph, graph set :sparql_client, sparql_client set :update_endpoint, update_endpoint set :log, SinatraTemplate::Utils.log + + set :protection, :except => [:json_csrf] end configure :development do