Guest User

Untitled

a guest
Nov 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. login ({commit}, authData) {
  2. fetch('/api/login', {
  3. username: authData.username,
  4. password: authData.password
  5. }, {
  6. mode: 'no-cors',
  7. method: 'post',
  8. url: `http://localhost:8088`,
  9. credentials: 'include'
  10. }) // ... goes on
  11.  
  12. bodyUsed: false
  13. headers: Headers { }
  14. ok: true
  15. redirected: false
  16. status: 200
  17. statusText: "OK"
  18. type: "basic"
  19. url: "http://localhost:8080/api/login"
Add Comment
Please, Sign In to add comment