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

188
Visualizações
Instagram integrated browser USER AGENT issue on Iphones - Magento FETCH CONTROLLER API redirect to homepage

I am using magento 1.9 and I have a page in which as soon as it loads I fetch a controller API to get some product data.

The problem is that this request is being redirected to homepage in some devices. (Iphone devices that access the website through the Instagram integrated browser)

During my research I found out that this may be an issue related to the validation of the USER Agent. Magento redirects to homepage any request that do not have an user agent set or that may have changed. I think instagram on these iphones are not sending this header or either the header is changed or not being set fast enough before the fetch call (?).

What is the most recommended way to fix this? I could deactivate User agent check, but how about security? I've read that fetch does not always allow to set an user agent manually, but this would also be an issue, since I'd need to change it for every API call, otherwise one or another would get redirected.

Any help or advice are welcome.

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