Signed-off-by: Adrian Hinz <ahinz@voicetelecom.pl>
This commit is contained in:
parent
9b7e974a34
commit
dcc3bc97d6
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue