Rest Api WordPress

  • Check caching/plugins interference

  • Try using:

jQuery.ajax({
type: ‘POST’,
url : obj_php.ajax_url_login,
beforeSend: function (xhr) {
xhr.setRequestHeader(‘X-WP-Nonce’, obj_php.nonce);
},