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?