Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

98
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda