Mixed-content blocks form submission on AWS with load balancer
-
I have a contact form using Contact Form 7 and it has worked for a long time until I recently moved to AWS. My new setup has WordPress running on an EC2 instance behind a Elastic Load Balancer (ELB). The ELB is where SSL is set so basically what’s happening is that the site is on https (eg, https://example.com/contact), but the url the form attempts to POST to is http (eg, https://example.com/wp-json/contact-form-7/v1/contact-forms/feedback, because the EC2 instance behind the ELB is not SSL). And that causes the POST request to fail. However, when I look at the form page and the plugin files I don’t see where I can force SSL for this URL. For example, in Laravel one might use the url method, url(‘/contact’), and that can be changed to secure_url(‘/contact’). Any ideas?
- The topic ‘Mixed-content blocks form submission on AWS with load balancer’ is closed to new replies.