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

172
Visualizações
Cannot connect to API NodeJS while VPN is active

I have just finished an application with Ionic. I submit it to the Apple Store. After a check, the Apple team refused me the application because they can’t connect to the application. The problem it runs into is “TypeError: Load Failed”. After many attemps, I finally managed to reproduce the error by using a VPN. So I suspect that my API CORS is not letting the VPN through. About the project :

  • The preflight sends me a 204 response with the OPTIONS method
  • The POST request returns a status code 307
  • API was writed with NodeJS
  • I use the package cors with defaults options
  • The Front use fetch() to call the API as bellow :

fetch(`${this.api}users/login`, {
              method: 'post',
              headers: {
                'Accept': 'application/json',
                'Content-Type': 'application/json',
              },
              body: JSON.stringify({
                email: user.email, 
                password: user.password
              })
            })

  • No issue when I try without VPN but I need to understand how to manage fetch with a VPN to pass the Apple Check.

Thank you for your help, I feel desperate

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