Endpoint does not work because of HTTPS redirect.

0

Hello Community! I have a problem with an API that supports only HTTP connections. I have no problem fetching connections via localhost, as my PC does not rewrite my request to HTTPS. I host my application in AWS Amplify, so cross-origin requests are turned on. My question is how can I turn HTTP to HTTPS redirect on Amplify so I can use my endpoint without an issue?

Thanks for your answers in advance!

AdamR
preguntada hace 3 meses127 visualizaciones
1 Respuesta
0

To redirect HTTP traffic to HTTPS on your Amplify app, you can configure redirects in the Amplify console settings.

  • Log into the AWS Amplify console and select your app
  • Go to the app settings section where you can manage routing and redirects.
  • Look for options to add URL redirect rules. You can add a rule to redirect all HTTP requests to the same URL but with HTTPS.
  • Make sure the security group for your Amplify app allows outbound traffic on port 443.
  • You can also configure HTTPS for your EC2 instance hosting the WordPress site using an Application Load Balancer and SSL/TLS certificate. The AWS documentation provides steps to create an HTTPS listener and redirect HTTP to HTTPS using listener rules.
profile picture
EXPERTO
respondido hace 3 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas