mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
Return Origin url instead of, as requested by ops
This commit is contained in:
parent
09e0a96b70
commit
966d668ac8
4 changed files with 10 additions and 10 deletions
|
@ -9,7 +9,7 @@ module Api
|
|||
end
|
||||
|
||||
def set_access_control_headers
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
response.headers['Access-Control-Allow-Origin'] = request.headers['Origin']
|
||||
response.headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, PATCH, DELETE, OPTIONS'
|
||||
response.headers['Access-Control-Allow-Headers'] = 'Origin, Content-Type, Accept, ' \
|
||||
'Authorization, Token, Auth-Token, '\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue