mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Ensure cors headers are also returned for other requests
This commit is contained in:
parent
e3c83c601c
commit
09e0a96b70
3 changed files with 18 additions and 0 deletions
|
@ -24,4 +24,12 @@ class RegistrantApiCorsHeadersTest < ApplicationIntegrationTest
|
|||
|
||||
assert_equal('', response.body)
|
||||
end
|
||||
|
||||
def test_it_returns_cors_headers_for_other_requests
|
||||
post '/api/v1/registrant/auth/eid', {}
|
||||
assert_equal('*', response.headers['Access-Control-Allow-Origin'])
|
||||
|
||||
get '/api/v1/registrant/contacts', {}
|
||||
assert_equal('*', response.headers['Access-Control-Allow-Origin'])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue