Skip to content

Instantly share code, notes, and snippets.

@LanguidSquid
LanguidSquid / actions.js
Created October 25, 2017 22:46
here is the offending code from the downvotePost method
export function downvotePost(id) {
var myHeaders = { headers: { 'Authorization': 'cakelolgarbage', 'Content-Type': 'application/json' }}
var requestBody = { 'option': 'downVote'}
var myInit = { method: 'POST',
headers: myHeaders,
body: requestBody,
mode: 'cors',
cache: 'default' }