Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View alastair38's full-sized avatar

Alastair Cox alastair38

View GitHub Profile
fetch("https:.....", { // url used is QA endpoint supplied (excluded here for security reasons)
method: "GET",
headers: {
"Authorization": "Basic c3ltcGxlY3RpY1BTWUNISUFUUlk6YnJpZ2h0Ymx1ZXN0YWdl" //encoded username:password
}
}).then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' +
response.status);

Keybase proof

I hereby claim:

  • I am alastair38 on github.
  • I am alastaircox (https://keybase.io/alastaircox) on keybase.
  • I have a public key whose fingerprint is CA21 B1A3 70F0 1C66 3A0F 6843 8082 DA67 AFA4 AEAA

To claim this, I am signing this object: