mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Add handling of OPTIONS request to /api namespace
* It allows access from anywhere via wildcard origin * It sets the timeout to an hour * It allows all standard HTTP verbs + OPTIONS
This commit is contained in:
parent
c148c7e0c0
commit
58c928226d
4 changed files with 51 additions and 0 deletions
|
@ -29,6 +29,9 @@ Rails.application.routes.draw do
|
|||
resources :contacts, only: %i[index show], param: :uuid
|
||||
end
|
||||
end
|
||||
|
||||
match '*all', controller: 'cors', action: 'cors_preflight_check', via: [:options],
|
||||
as: 'cors_preflight_check'
|
||||
end
|
||||
|
||||
# REGISTRAR ROUTES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue