Skip to content
Advertisement

Tag: https

Preventing http access in Laravel 8

I have a question about force using HTTPS in laravel, i’ve added a condition inside AppServiceProvider.php, creating a middleware and modifying the .htaccess file. But I can still access the http page. Is there any other way to get laravel to redirect to https instead of http, and how to prevent user to acces the http addres? thank you! my

Load Blade assets with https in Laravel

I am loading my css using this format: <link href=”{{ asset(‘assets/mdi/css/materialdesignicons.min.css’) }}” media=”all” rel=”stylesheet” type=”text/css” /> and it loads fine for all http requests But when I load my login page with SSL (https), I get a …page… was loaded over HTTPS, but requested an insecure stylesheet ‘http… Can someone please tell me how do I make blade load assets

getimagesize and https

I am retrieving facebook album images from facebook.I have calculating the image size using the php function getimagesize.This function is working fine when the url is in http mode.When the facebook return the image url with https the getimagesize giving error.How i can calculate the imagesize of images with https extension using getimage size Answer You do not have the

Make a HTTPS request through PHP and get response

I want to make HTTPS request through PHP to a server and get the response. something similar to this ruby code Thanks Answer this might work, give it a shot. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // Set so curl_exec returns the result instead of outputting it. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Get the response and close the channel. $response =

Advertisement