mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
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:
parent
75956c2d33
commit
c3430d8af5
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ get '/' do
|
|||
end
|
||||
|
||||
get '/domains' do
|
||||
headers['Access-Control-Allow-Origin'] = '*'
|
||||
DOMAINS.to_json
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue