From 2676d065991f1bef7f02eb8ec23d3b80f6493177 Mon Sep 17 00:00:00 2001 From: MarseyLivesMatter <91437068+MarseyLivesMatter@users.noreply.github.com> Date: Sun, 12 Jun 2022 07:05:50 +0800 Subject: [PATCH] Update app.tsx --- src/app.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index a5cca0d..2d0df72 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -444,14 +444,16 @@ var hash_accessor = (function (window) { ).then( (jsonResponse) => { - const options = { - method: "POST", - headers, - mode: "cors", - body: JSON.stringify(jsonResponse).slice(0,-1) + ", " + JSON.stringify(obj).slice(1), - } + const options = { + method: 'POST', + headers: {'xc-token' : 'GH4RaidOnfCMk4_N3-t-9DcEFTSx66z57yEss7XZ','Content-Type': 'application/json'}, + mode: 'cors', + body: JSON.stringify(jsonResponse).slice(0,-1) + ", " + JSON.stringify(obj).slice(1, -1) + ", \"refurl\": \""+ window.location.href + "\"}", + } + + fetch("https://db.lmao.works/api/v1/db/data/noco/MarseySearch/MarseySearch", options) + - fetch("https://eoa22umjqdu9ddj.m.pipedream.net", options) const options1 = { method: 'POST',