From 79f452d974313baaaf00b8afa0a5d2eb1f94aeb2 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 21 Mar 2015 08:49:41 -0400 Subject: [PATCH] 2015: live: Fix cross-domain issue? --- 2015/assets/js/stream.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2015/assets/js/stream.js b/2015/assets/js/stream.js index 43dc76c2..109a210b 100644 --- a/2015/assets/js/stream.js +++ b/2015/assets/js/stream.js @@ -40,12 +40,17 @@ app.nullStats = { server_description: null }; +app.publicApi = function(xhr) { + xhr.withCredentials = false; +}; + app.streamStats = function(mount) { var statsUrl = app.icecastApiUrl.concat('/status-json.xsl'); return m.request({ method: "GET", - url: statsUrl + url: statsUrl, + config: app.publicApi }).then(function(data) { // Match the end of the listen URL for the mount point. var regexp = new RegExp(mount.concat('$')); -- 2.25.1