I am developing an application using AWS, SSL (Load Balancer), PHP.
my domain is example.com
when I access https://example.com
Why when I debug url, which I see is http://example.com althought my browser also display HTTP (usingSSL)
When I call a API from my application I got an error said that "redirect http to https this request has been blocked; the content must be served over https. "
I am using load balancer redirect to target group in AWS.
I tried set
if ($http_x_forwarded_proto = 'http') { return 301 https://$server_name$request_uri; }
but my problem still isn't resolve.
Help me check it
https://stackoverflow.com/questions/66962991/aws-redirect-http-to-https-this-request-has-been-blocked-the-content-must-be-se April 06, 2021 at 01:09PM
没有评论:
发表评论