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

182
Views
Ger alrededor de "Se negó a conectarse a <URL> porque viola el CSP" en las herramientas de desarrollo

Actualmente estoy en news.ycombinator.com .

Me gustaría ejecutar el siguiente código en mis devtools:

 const response = await fetch("http://localhost:3000/api/upload", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ html: document.documentElement.outerHTML, }) }); await response.json();

Sin embargo, me sale el error:

Se negó a conectarse a 'http://localhost:3000/api/upload' porque infringe la siguiente directiva de Política de seguridad de contenido: "default-src 'self'". Tenga en cuenta que 'connect-src' no se configuró explícitamente, por lo que se usa 'default-src' como alternativa.

¿Hay alguna forma de evitar esto en las herramientas de desarrollo, o tengo prohibido realizar solicitudes a cualquier API externa desde las herramientas de desarrollo?

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!