FIX: Allow requests with API keys (#52)

This commit is contained in:
Yaw Anokwa 2019-02-26 22:19:48 -08:00 committed by Sam
parent 39ea15921c
commit 3fedba4a4d
1 changed files with 5 additions and 3 deletions

View File

@ -7,9 +7,11 @@ module DockerManager
protect_from_forgery
def handle_unverified_request
super
clear_current_user
render plain: "['BAD CSRF']", status: 403
unless is_api?
super
clear_current_user
render plain: "['BAD CSRF']", status: 403
end
end
end