mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
Return empty body in OPTIONS requests
This commit is contained in:
parent
58c928226d
commit
e3c83c601c
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue