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

153
Views
cómo usar fetch para hacer llamadas api mientras se crea una extensión de safari

Estoy trabajando en una extensión de safari y mientras uso fetch para hacer una llamada a una API con el siguiente código:

 async function getSomething() { try { const response = await fetch("https:// www.xyz.com/abcs/", { # dont mind the space in the URL i created it to be able to post this question method: "GET", headers: { "Content-Type": "application/json", }, mode: "no-cors" }) if (!response.ok) { # something is wrong here } } catch (error) { alert(error) } }

Recibo TypeError: Load failed por error anterior. No estoy seguro de por qué y cómo esto es posible porque el mismo código funciona en la chrome extension .

Busqué en Internet y no pude encontrar por qué sucedería esto. ¿Safari requiere permisos adicionales para hacer webRequest o me estoy perdiendo algo?

about 4 years ago · Santiago Gelvez
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!