$.ajaxSetup({ headers: { 'Accept': 'application/json', 'REFERRER':'http://unogs.com' }, beforeSend: function(xhr) { xhr.setRequestHeader('Authorization', 'Bearer '+Cookies.get('authtoken')); } });