mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
Allow CORS request for /test/:subdomain route.
This commit is contained in:
parent
362dffaa84
commit
9902a43e94
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ get '/domains' do
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/test/:subdomain' do
|
get '/test/:subdomain' do
|
||||||
|
headers['Access-Control-Allow-Origin'] = '*'
|
||||||
if entry = Entry.first(:subdomain => params[:subdomain])
|
if entry = Entry.first(:subdomain => params[:subdomain])
|
||||||
halt 409, { :error => "Subdomain already taken: #{entry.subdomain}" }.to_json
|
halt 409, { :error => "Subdomain already taken: #{entry.subdomain}" }.to_json
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue