From c3430d8af5135f231be9786265ad36892c0831c2 Mon Sep 17 00:00:00 2001 From: opi Date: Wed, 3 Sep 2014 16:47:12 +0200 Subject: [PATCH] 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 --- dynette.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/dynette.rb b/dynette.rb index 7eea808..a23ae48 100755 --- a/dynette.rb +++ b/dynette.rb @@ -98,6 +98,7 @@ get '/' do end get '/domains' do + headers['Access-Control-Allow-Origin'] = '*' DOMAINS.to_json end