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

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

This request has been blocked; the content must be served over HTTPS. link @ weather.js:9 ClickSearch @ weather.js:36 onclick @ (index):53

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
Posted by: Guest on February-04-2021

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

Browse Popular Code Answers by Language