Answers for "set authorisation headers on form submit"

0

set authorisation headers on form submit

$('#submitButton').on('click',function(){
    $.ajax({
          url: "http://localhost:15797/api/values",
          type: 'GET',
          contentType: 'application/json',
          headers: {
                    "Authorization": "Bearer " + $('#tokenField').val()
                 },
          async: false
            }});
Posted by: Guest on August-31-2020

Browse Popular Code Answers by Language