testing jsonp data type for returning the hubspot api data to circumvent same origin...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 Aug 2016 14:23:57 +0000 (10:23 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 Aug 2016 14:23:57 +0000 (10:23 -0400)
js/app.js
js/custom/pageSetup.js

index 004ffca..fe654b8 100644 (file)
--- 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);
index d3ed5a7..34164e3 100644 (file)
@@ -193,6 +193,8 @@ $(document).ready(function () {
 
     $.ajax({
         url: url,
+        dataType: 'JSONP',
+        jsonpCallback: 'callback',
         type: 'GET',
         success: function (data) {
             console.log(data);