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!

1 Risposta
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
ESPERTO
con risposta 3 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande