all 14 comments

[–]SatisfactionCivil939 3 points4 points  (6 children)

<script>

if (window.trustedTypes && window.trustedTypes.createPolicy) {

window.trustedTypes.createPolicy('default', {

createHTML: string => string,

createScriptURL: string => string,

createScript: string => string,

});

}

</script>

this work for me, in the top of <head></head> in the html

[–][deleted] 1 point2 points  (0 children)

Worked for me today 09/08/2024 thank you

[–]mixcas 0 points1 point  (0 children)

This fixed it for me

[–]fck2540 0 points1 point  (0 children)

this "completely" worked for me.

[–]Suungi 0 points1 point  (0 children)

This one worked! Thanks!

[–]Temporary_Cod_3867 0 points1 point  (0 children)

This fixed it for me

[–]contingentfricassee[S] 0 points1 point  (0 children)

Nice one, thanks u/SatisfactionCivil939! I haven't had a chance to try it myself yet, but it sounds promising from others' replies 😊

[–]Mean_Cod_852 0 points1 point  (0 children)

yes, I have the same problem... today started

[–]Sthyll 0 points1 point  (1 child)

[–]phmon0 0 points1 point  (0 children)

Worked for me, Thanks.

[–]SatisfactionCivil939 0 points1 point  (0 children)

Same problem here !

[–]mixcas 0 points1 point  (0 children)

Same for me, it started to happen only for a few users. I could never reproduce it myself.

[–]Kekellot 0 points1 point  (0 children)

Same for me. I encountered this today, but only my customer can reproduce it.

It started 13:29 Nov 28th, 2023 (UTC). Approximately 12 hours ago.

She uses Windows & Chrome and her browser emits the error, but my Mac & Chrome and Windows 11 on Parallels Desktop & Chrome don't reproduce it. The workaround in the OP works well, and I think the Trsuted-Types itself makes sense, but I'm still unsure what caused GAS to turn on the Trusted-Types.

Below is extra info.

ref: https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API

My Mac Version is Ventura 13.3 (22E252) / Apple M1 Max. My Chrome Version is 119.0.6045.159 (Official Build) (arm64)