Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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';
 }
Comment

PREVIOUS NEXT
Code Example
Php :: in_array validation laravel 
Php :: php find similitur in two array 
Php :: laravel blade foreach index value 
Php :: Creating default object from empty value 
Php :: request update password laravel 
Php :: magento 2 db connection 
Php :: 301 redirect 
Php :: how to maintain serial number in pagination in laravel blade 
Php :: laravel unique validation on multiple columns 
Php :: woocommerce after order been placed hook 
Php :: macos how host laravel website on localhost and intranet wifi 
Php :: wp_list_pluck 
Php :: increase php_values 
Php :: laravel make model with migration 5.8 
Php :: laravel use global variable in model 
Php :: php proper function comments 
Php :: make exception laravel 
Php :: cakephp 4 change layout view in a method 
Php :: mobile detect in laravel 
Php :: $product-product_type 
Php :: get all post 
Php :: php custom autoload 
Php :: php unique assoc array by value 
Php :: laravel switch 
Php :: how get the photo size upload in laravel 
Php :: php header x forwarder for 
Php :: artisan in route in laravel 
Php :: php include external directory path 
Php :: php number format without rounding 
Php :: function inside model laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =