Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getCSRF() {
- var url = {
- method: 'GET',
- uri:"https://profile.callofduty.com/",
- headers: {
- 'Content-Type': 'application/json'
- },
- };
- request(url, (err, response, body) => {
- var token = response.headers['set-cookie'][2].replace("XSRF-TOKEN=", "").replace("; Domain=callofduty.com; Path=/", "");
- console.log(token);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement