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

313
Views
¿Cómo detener la etiqueta img para convertir la imagen en formato data:image/png base64?

Estoy usando React 17 e importando un ícono de imagen como se muestra a continuación

 import IconA from './myassets/images/Icona.png'; const ImgView = () => { return ( <div> <img src={IconA} alt="IconA" /> </div> ); }

En la página HTML, se convierte a una cadena base64 y se representa como

 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="IconA" />

¿Cómo puedo cargar mi ícono en la etiqueta img sin convertirlo a una cadena base64? Obtengo un error de CSP inferior debido al problema anterior

 Refused to load data:image/png;base64 ... because it does not appear in the img-src directive of the Content Security Policy
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!