From c1c6c16678342d025dd9226d735c59005d329cd0 Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Tue, 19 Dec 2023 08:44:30 -0600 Subject: [PATCH] CORS --- .idea/vcs.xml | 6 ++++++ app.js | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app.js b/app.js index 56a1065..d07b2c8 100644 --- a/app.js +++ b/app.js @@ -21,7 +21,8 @@ function generateQuickCmd() { fetch("https://paste.nevets.tech/api/", { method: "POST", headers: {'Content-Type': 'application/json'}, - body: "{'format':'url','content':'" + buildCmd() + "','expires':3600,'lexer':'bash'}" + body: "{'format':'url','content':'" + buildCmd() + "','expires':3600,'lexer':'bash'}", + mode: "cors" }).then(res => res.json().then(json => { document.getElementById("script").innerText = "curl -s " + json.url + "/raw | bash"; }));