Answers for "mixed content: the page at '<url>' was loaded over https, but requested an insecure xmlhttprequest endpoint '<url>'."

PHP
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
0

mixed content: the page at '<url>' was loaded over https, but requested an insecure stylesheet '<url>'. this request has been blocked; the content must be served over https.

Here's your problem:

RewriteCond %{SERVER_PORT} ^443$
RewriteRule (.*) http://www.example.com/$1 
You don't allow SSL requests (443 port number is used for HTTPS requests). Try removing these lines.
Posted by: Guest on June-12-2021

Code answers related to "mixed content: the page at '<url>' was loaded over https, but requested an insecure xmlhttprequest endpoint '<url>'."

Browse Popular Code Answers by Language