Skip to content

Instantly share code, notes, and snippets.

@LanguidSquid
LanguidSquid / actions.js
Created Oct 25, 2017
here is the offending code from the downvotePost method
View actions.js
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' }
You can’t perform that action at this time.