Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fetch('http://localhost:8080/login', {
  2.                 method: 'POST',
  3.                 headers: {
  4.                     'Accept': 'application/json',
  5.                     'Content-Type': 'application/json',
  6.                 },
  7.                 body: JSON.stringify({
  8.                     username: username,
  9.                     password: password,
  10.                 })
  11.             }).then(
  12.                 value => {
  13.                     console.log('login:75: v ' + JSON.stringify(value));
  14.                 }
  15.             )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement