Answers for "The request has been blocked because it requested an insecure HTTP resource"

1

mixed content: the page at was loaded over https, but requested an insecure xmlhttprequest endpoint

Add below code to your index.php file for on the https

 if((!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) || (!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) ) {
 	$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
 	$_SERVER['HTTPS'] = 'on';
 }
Posted by: Guest on September-30-2020

Code answers related to "The request has been blocked because it requested an insecure HTTP resource"

Browse Popular Code Answers by Language