Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

101
Vistas
Fetch POST headers - iOS Safari issues

I'm sending data w/ headers to my server from the client (https client on my heroku domain) without any issue on Chrome mobile but iOS safari won't POST the data.

Below javascript sits on the client side and pulls data from the geolocation API in the users mobile browser (after asking for permission). Both Chrome mobile and iOS Safari get to the step of asking the user for geolocation approval, but then iOS safari sends another 'GET' to the endpoint instead of a 'POST' like Chrome mobile.

const status = "Y";
const guest = cookies.guest_id;
const data = { status, guest };

const options = {
    method: 'POST',
    headers: {
        'Content-type': 'application/json'
    },
    body: JSON.stringify(data)
};
fetch(`/events/${eventID}/prompt`, options) // my endpoint

My understanding is fetch() is fully supported by iOS mobile, so why isn't it executing as expected?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda