Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.get('url', {
- username: 'Luiz'
- password: 'Pass'
- })
- .done(function () {
- console.log('Enviado!');
- })
- .fail(function () {
- console.log('Erro no envio.');
- })
- ;
- $.ajax({
- url: "http://meuapp.com/jwt",
- dataType: 'jsonp',
- success: function(data, status) {
- return console.log("Dados", data);
- },
- beforeSend: function(xhr, settings) { xhr.setRequestHeader('Authorization','Bearer ' + token); }
- });
Add Comment
Please, Sign In to add comment