Allow CORS request for /domains route.

Don't know if it's the right syntax, but I rellay need "Access-Control-Allow-Origin" headers to be defined for this issue : https://github.com/YunoHost/admin_js/issues/60
<3
This commit is contained in:
opi 2014-09-03 16:47:12 +02:00
parent 75956c2d33
commit c3430d8af5

View file

@ -98,6 +98,7 @@ get '/' do
end end
get '/domains' do get '/domains' do
headers['Access-Control-Allow-Origin'] = '*'
DOMAINS.to_json DOMAINS.to_json
end end