Answers for "chrome dev tools xhr blocked due to mixed content"

0

disable mixed content via javascript

//there's no way to disable mixed content using javascript but you can add this tag
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
//to your HTML to allow mixed content
Posted by: Guest on February-17-2020
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 "chrome dev tools xhr blocked due to mixed content"

Browse Popular Code Answers by Language