Signed-off-by: Adrian Hinz <ahinz@voicetelecom.pl>
This commit is contained in:
parent
951673c9b5
commit
54a856d90e
|
|
@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_headers
|
def set_headers
|
||||||
headers['Access-Control-Allow-Origin'] = 'lvh.me'
|
headers['Access-Control-Allow-Origin'] = '*'
|
||||||
headers['Access-Control-Allow-Methods'] = 'POST, PUT, DELETE, GET, OPTIONS'
|
headers['Access-Control-Allow-Methods'] = 'POST, PUT, DELETE, GET, OPTIONS'
|
||||||
headers['Access-Control-Request-Method'] = '*'
|
headers['Access-Control-Request-Method'] = '*'
|
||||||
headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
|
headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue