So ORIGINALLY I think it worked and I don't think I modified it. By it I mean a JS script that posts data to an external site. Now in my console it shows "[01/Jun/2021 20:31:17] "POST /newCheckout HTTP/1.1" 405 -" error
Code is:
let data = {"checkout_id": document.documentElement.innerHTML};
fetch("https://botach-test-branch.ngrok.io/newCheckout", {
method: "POST",
body: JSON.stringify(data)
}).then(res => {
console.log("Request complete! response:", res);
});