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

275
Visualizações
fetch http request succeeds in Chrome and Firefox but fails in Safari

If we run the following code in safari it fails saying "failed to load resource: cannot parse response"

fetch('https://mycompanyname/service/contracts-api/operatingMode', {
  method: "GET",
  headers: new Headers({
    'Authorization': 'Basic VGVzdFVzZXIxOlRFU1QhdXNlcjE=',
    'X-mycompanyname-ContractsServer': 'someurl'
  })
}

safari inspect element preview

safari inspect element headers But if we run the same code in Chrome or Firefox, it succeeds (in the same mac computer).

Is there any quirk in Safari fetch request that I am not considering?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

We fixed the issue adding in apache the following line:

Header unset Upgrade

The explanation is here:

https://serverfault.com/questions/937253/https-doesnt-work-with-safari

about 4 years ago · Juan Pablo Isaza Relatório
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