SHARE
TWEET

Untitled

a guest Jul 24th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. await fetch(url, {
  2.             method: 'POST',
  3.             body: JSON.stringify(book),
  4.             credentials: 'include',
  5.             headers: {
  6.                 'Authorization': `Basic ${btoa('guest' + ':' + '1234')}`,
  7.                 'Content-Type': `application/json`,
  8.             },
  9.  
  10.         })
  11.             .then(response => response.json())
  12.             .then(loadBtn)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top