Walshy | Pages
05/21/2023, 5:03 AMWalshy | Pages
05/21/2023, 5:04 AMhttps://cdn.discordapp.com/attachments/917505178016579605/1109708316457840713/image.png▾
Walshy | Pages
05/21/2023, 5:04 AMWalshy | Pages
05/21/2023, 5:07 AMhttps://cdn.discordapp.com/attachments/917505178016579605/1109709015581208707/image.png▾
dean.me
05/22/2023, 11:14 AMyoav
05/22/2023, 1:02 PMdave
05/22/2023, 11:51 PMdave
05/22/2023, 11:53 PMdave
05/23/2023, 12:19 AMmessagerichard
05/23/2023, 4:09 AMdave
05/23/2023, 7:22 PMdave
05/23/2023, 7:25 PMBeto Garcia
05/23/2023, 9:02 PMdave
05/23/2023, 9:02 PMBeto Garcia
05/23/2023, 9:07 PMdave
05/23/2023, 9:08 PMBeto Garcia
05/23/2023, 9:10 PMdave
05/23/2023, 9:12 PMMarcky
05/24/2023, 8:01 AMw.zarazData.executed.push("Pageview");})(window,document)[...] EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive
Refused to connect to 'https://track.hubspot.com/__ptq.gif?[...]17' because it violates the document's Content Security Policy.
We have been reading your docs and stumbled upon this in the notes: "*Cloudflare Zaraz is still not 100% compliant with CSP because some tools still need to use eval() - usually for setting cookies, but we’re already working on a different approach so, stay tuned!*"
Is there any updates or any way around this besides adding unsafe-eval?
Thanks!yoav
05/24/2023, 10:50 AMunsafe-eval
is more widespread. YMMV depending on which tools you have, but if they're marked as Legacy I highly recommend updating them.MrCoder
05/27/2023, 1:17 AMwrong
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: `{
"events": [
{
"client": {
"__zarazTrack": "transaction successful",
"value": "200"
}
}
]
}`,
}
Right
right
{
"events": [
{
"client": {
"__zarazTrack": "transaction successful",
"value": "200"
}
}
]
}
dave
05/27/2023, 1:18 AMMrCoder
05/27/2023, 6:20 AMdave
05/27/2023, 2:51 PMapi.example.com
, and I was trying to POST to www.example.com/zaraz_endpoint_here
MrCoder
05/28/2023, 8:06 AMxxx.zenuml.com/installed
and the zaraz endpoint at zenuml.com/zaraz/api
. It seems working fine.liran8517
12/17/2023, 8:37 AMMeiki
12/19/2023, 8:19 PMddeldeddel
12/22/2023, 11:35 AMMackenly
01/04/2024, 7:46 PMthesuperzapper
01/08/2024, 6:31 AMContent-Security-Policy
header, but this obviously disables CSP.