Live-Poll icon indicating copy to clipboard operation
Live-Poll copied to clipboard

Refactor to use a post request

Open simon-tiger opened this issue 5 years ago • 5 comments

You can create an interface, but for now, you can use a piece of software called Insomnia to make post requests :)

simon-tiger avatar Oct 10 '20 16:10 simon-tiger

Thank you for demonstrating the wonder of POST requests! Leaving this as a GET right now for demonstration purposes. 💖

shiffman avatar Nov 07 '20 21:11 shiffman

I would still vote for POST request. With GET request it's possible to send someone a url which instantly votes for them. This sounds like security issue. For example: http://localhost/vote/a1b2c3d4e/2

BlackBirb avatar Nov 09 '20 16:11 BlackBirb

Ok! I'm good with switching to a POST request (if it hasn't already been altered in another pull request). Feel free to resubmit!

shiffman avatar Nov 22 '20 17:11 shiffman

@all-contributors please add @simon-tiger for code and ideas

shiffman avatar Nov 22 '20 17:11 shiffman

@shiffman

I've put up a pull request to add @simon-tiger! :tada:

allcontributors[bot] avatar Nov 22 '20 17:11 allcontributors[bot]