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

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

How to fix 'Mixed Content: The page was loaded over HTTPS, but requested an insecure script” [duplicate]

If you get a console message that a resource request has been automatically upgraded from HTTP to HTTPS, you can safely change the http:// URL for the resource in your code to https://. You can also check to see if a resource is available securely by changing http:// to https:// in the browser URL bar and attempting to open the URL in a browser tab.
https://web.dev/fixing-mixed-content/
Posted by: Guest on November-17-2020

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

Browse Popular Code Answers by Language