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
asked 3 months ago119 views
1 Answer
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
EXPERT
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions