aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mauve/web_interface.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb
index 896b9cb..5fa1fb8 100644
--- a/lib/mauve/web_interface.rb
+++ b/lib/mauve/web_interface.rb
@@ -66,6 +66,9 @@ module Mauve
set :raise_errors, false # ...will not let exceptions out to main program
set :show_exceptions, false # ...will not show exceptions
+ # We need this to avoid 403's on AJAX requests
+ set :protection, :except => :json_csrf
+
#
# Default template.
#