Commit 2197a589 authored by Cool Fire's avatar Cool Fire

Disable csrf protection on json requests

parent 28e2cb37
Pipeline #1790 passed with stages
in 5 minutes and 19 seconds
......@@ -9,6 +9,7 @@ require 'sinatra/base'
class HashDbApi < Sinatra::Base
enable :lock
set :database_prefix, '/databases/'
set :protection, except: [:json_csrf]
before do
content_type :json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment