-
#Idea: A
Response.prototype.safeScript()type that returns aTrustedScriptif the fetch passes CSP. You could then safelyeval()the script later. Could do the same withsafeHtml()that returnsTrustedHtmlas well... -
We would probably want to require that the page
fetch()aTrustedScriptURLinstead of an untrusted string, but hopefully this gets the point across at least.
develwoutacause’s Twitter Archive—№ 864