Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery header basic auth

$.ajaxSetup({
  headers: {
    'Authorization': "Basic " + btoa(USERNAME + ":" + PASSWORD)
  }
});
 
PREVIOUS NEXT
Tagged: #jquery #header #basic #auth
ADD COMMENT
Topic
Name
6+9 =