How to use JSONP to make AJAX request to different site on network
There’s two parts to this, the javascript ajax call needs specific variables included: $.ajax({ type: “GET”, url: SSL_Ajax.ajaxurl, cache: false, dataType: “jsonp”, crossDomain: true, data: { action : ‘ajaxSSL’, ajaxSSLNonce : SSL_Ajax.ajaxSSLNonce, input : $(‘input[name=title]’).val() }, success: function( data ) { console.log( ‘success’ ); console.log( data ); }, complete: function( data ) { console.log( ‘complete’ … Read more