Signed-off-by: Adrian Hinz <ahinz@voicetelecom.pl>

This commit is contained in:
Adrian Hinz 2017-06-28 14:12:02 +02:00
parent 9b7e974a34
commit dcc3bc97d6
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ class ApplicationController < ActionController::Base
end
def set_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Origin'] = 'lvh.me'
headers['Access-Control-Allow-Methods'] = 'POST, PUT, DELETE, GET, OPTIONS'
headers['Access-Control-Request-Method'] = '*'
headers['Access-Control-Request-Method'] = 'lvh.me'
headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
end