Return empty body in OPTIONS requests

This commit is contained in:
Maciej Szlosarczyk 2018-10-16 09:47:33 +03:00
parent 58c928226d
commit e3c83c601c
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
2 changed files with 7 additions and 1 deletions

View file

@ -5,7 +5,7 @@ module Api
def cors_preflight_check
set_access_control_headers
render json: { status: :ok }
render text: ''
end
def set_access_control_headers