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

291
Views
mi aplicación web firebase no está habilitando cors en mi archivo firebase.json

archivo firebase.json:

 { "hosting": { "public": "public", "cleanUrls": true, "headers": [ { "source": "**", "headers": [ { "key": "Access-Control-Allow-Origin", "value": "*" } ] } ] } }

Pensé que esto habría solucionado el problema, pero desde mi página principal index.html, pero cuando uso el código, todavía bloquea la política de núcleos y no tengo el presupuesto para obtener las funciones de firebase en este momento, pero obtuve firebase.json código de otra publicación pero no ayudó:

 function download_file(val, filename) { var storage = firebase.storage(); storage.ref(val).getDownloadURL().then(function(url) { // `url` is the download URL for 'images/stars.jpg' alert(url, filename) // This can be downloaded directly: var xhr = new XMLHttpRequest(); xhr.responseType = 'blob'; xhr.onload = (event) => { var blob = xhr.response; }; xhr.open('GET', url); xhr.send(); }).catch(function(error) { console.log(error) }); }

POR FAVOR, no cierre esta publicación, en su lugar, márquela como arreglada, no quiero que me prohíban, así que por favor ... Obtuve mi código de aquí: ENLACE [Publicación de desbordamiento de pila] [1]

[1]: Access-Control-Allow-Origin agregado a firebase.json pero falta en el encabezado de respuesta del archivo Pero no funciona...

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!