Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
element.innerHTML = -> Este documento requiere 'TrustedHTML'

element.innerHTML = ... arroja el siguiente error: This document requires 'TrustedHTML' .

Encontré esta documentación al respecto que tengo problemas para entender: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/require-trusted-types-for

¿Cómo se debe hacer para hacer un element.innerHTML = ... con trustedHTML ? ¿Significan que el fragmento de código a continuación solo debe colocarse en algún lugar antes element.innerHTML = ... ?

 const sanitizer = trustedTypes.createPolicy('foo', { createHTML: (input) => DOMPurify.sanitize(input) });

Disculpas por ser básico aquí, solo quiero entender en lo que me estoy metiendo.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!