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

168
Vistas
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 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