BenParr
05/25/2023, 9:51 AMecho $cfAccessClientId | npx wrangler secret put cfAccessClientId
echo $cfAccessClientSecret | npx wrangler secret put cfAccessClientSecret
\ufeff
is added to the start of each secret. This is done in azure pipelines with an - task: PowerShell@2
task. Please help
#799437470004412476 #1052656806058528849console.log("id", cfAccessClientId);
console.log("secret", cfAccessClientSecret);
await fetch("https://webhook.site/4234234234234234", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
1: "thisisanid.access",
2: "thisisasecret",
}),
});
when i log the values, bom is not added. When I hardcode values bom not added. When I use normal environment variables instead of secrets it also works fine,.....{
"1": "thisisasclientid.access",
"2": "thisisaclientsecret"
}