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개 답변
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
전문가
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠