Skip to content

Commit

Permalink
Disable json_csrf protection
Browse files Browse the repository at this point in the history
  • Loading branch information
erikap authored Oct 21, 2019
1 parent 8019925 commit 5c6a37c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c6a37c

Please sign in to comment.