mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +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
|
@ -19,7 +19,7 @@ module Api
|
|||
private
|
||||
|
||||
def set_cors_header
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
response.headers['Access-Control-Allow-Origin'] = request.headers['Origin']
|
||||
end
|
||||
|
||||
def bearer_token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue