From adf3be9fc9272574ffa63ffc5fc2d773334ee5c6 Mon Sep 17 00:00:00 2001 From: Amir Keshavarz Date: Wed, 6 Jan 2016 05:17:05 +0330 Subject: [PATCH] fixed url filter for cross origin ajax requests --- js/demo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/demo.js b/js/demo.js index df9aec4..7e09524 100644 --- a/js/demo.js +++ b/js/demo.js @@ -111,7 +111,9 @@ var Demo = { base = base.split('?')[0]; } - options.url = base + options.url.substr(1); + if (options.url.indexOf('://') == -1) { + options.url = base + options.url.substr(1); + } }); },