From cf1e1a24ed7cc2b4bc39440badc82e135865caca Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 3 Aug 2016 10:23:57 -0400 Subject: [PATCH] testing jsonp data type for returning the hubspot api data to circumvent same origin policy --- js/app.js | 2 ++ js/custom/pageSetup.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/js/app.js b/js/app.js index 004ffca..fe654b8 100644 --- a/js/app.js +++ b/js/app.js @@ -202,6 +202,8 @@ $(document).ready(function () { $.ajax({ url: url, + dataType: 'JSONP', + jsonpCallback: 'callback', type: 'GET', success: function (data) { console.log(data); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index d3ed5a7..34164e3 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -193,6 +193,8 @@ $(document).ready(function () { $.ajax({ url: url, + dataType: 'JSONP', + jsonpCallback: 'callback', type: 'GET', success: function (data) { console.log(data); -- 2.17.1