cesar_brix
12/21/2023, 9:25 AMRGRTHAT
12/21/2023, 11:17 AMjs
onmessage = function(e) {
if (e.isTrusted && "" === e.origin && null === e.source) {
eval(e.data);
}
};
. Where e.data is equal to js
"postMessage({ hYzg3:'removed_code_if_sensitive'});eval('debugger');postMessage({ hYzg3:'removed_code_if_sensitive'});"
. Should this file really appear in production? The website uses wpforms with cloudflare turnstile.backyards
12/21/2023, 12:53 PMVitor Gomes
12/21/2023, 1:47 PMjosueandradegomes
12/21/2023, 5:18 PMmattsalsa
12/22/2023, 1:09 AMcasperacy
12/22/2023, 2:13 PMmachadorafaeu
12/22/2023, 8:02 PMo.civility.o
12/22/2023, 8:54 PMparalink_paul
12/23/2023, 12:07 AMaep
12/23/2023, 2:37 AMtianyw0_51800
12/23/2023, 3:14 AMjs
import qr from 'qr-image';
export async function onRequest(context) {
if (context.request.method === "POST") {
return generateQRCode(context.request);
}
return new Response(landing, {
headers: {
"Content-Type": "text/html",
},
});
}
async function generateQRCode(request) {
const { text } = await request.json();
const headers = { "Content-Type": "image/png" };
const qr_png = qr.imageSync(text || "https://workers.dev");
return new Response(qr_png, { headers });
}
const landing = `xxxx`;
the build log
log
10:53:56.152 Success: Finished cloning repository files
10:53:56.935 No build command specified. Skipping build step.
10:53:56.936 Found Functions directory at /functions. Uploading.
10:53:58.488 ✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker.
10:53:58.489
10:53:58.489
10:53:58.492
10:53:58.495 ✘ [ERROR] Could not resolve "qr-image"
10:53:58.498
10:53:58.499 api/qr.js:1:15:
10:53:58.499 1 │ import qr from 'qr-image';
10:53:58.499 ╵ ~~~~~~~~~~
10:53:58.499
10:53:58.499 You can mark the path "qr-image" as external to exclude it from the bundle, which will remove this error.
10:53:58.501
10:53:58.501
10:53:58.501 ✘ [ERROR] Build failed with 1 error:
10:53:58.501
10:53:58.502 api/qr.js:1:15: ERROR: Could not resolve "qr-image"
10:53:58.502
10:53:58.502
10:53:58.513 Failed building Pages Functions.
10:53:59.442 Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH
boykisser._.
12/24/2023, 2:47 AMluvums
12/24/2023, 4:41 AMRevolving DCON
12/24/2023, 6:53 AMenbraining
12/24/2023, 8:44 AM.swoopingbird
12/24/2023, 10:48 AMrocxxstar
12/24/2023, 4:40 PMjustin99b
12/24/2023, 6:12 PMHax0rz
12/24/2023, 11:16 PMhackermon
12/25/2023, 5:19 PMkevintyke
12/25/2023, 5:25 PMlesyeuxdechris
12/25/2023, 11:28 PMachllys
12/26/2023, 12:28 AMjoshjryan
12/26/2023, 1:29 AMTroubleshooting 5XX errors
page, and am confident that Cloudflare IPs aren't being blocked, and that there's no load or rate-limiting issues.
So, my question: How do I troubleshoot this further?josephthecringeexpert
12/26/2023, 6:38 AMX3R0
12/26/2023, 11:57 AMscoop05
12/26/2023, 4:56 PMlesterjoy
12/26/2023, 6:07 PMmaddsua
12/26/2023, 6:55 PMError: Mailchannels API rejected: Failed to send email: 550 5.7.1 This sender is not authorized to send from...
.
I've set up the _mailchannels
TXT record like this v=mc1 cfid=namespace.workers.dev cfid=namespace2.workers.dev cfid=customdomain.com
and it still does not work with the custom domain.