The SSLized site appears as unprotected communication.

Asked 1 years ago, Updated 1 years ago, 113 views

If you SSL the web app on EC2 and access the site, it says unprotected communication.
Enter a description of the image here
The reason seems to be that the image used in the logo is not httpsed from the developer tool below.
Enter a description of the image here
I put the image in the folder called larvel/public/images on EC2, so I should be able to display it, but do I need a symbolic link?Or do I need to take other measures?
Thank you for your cooperation.

Additional
Image Tag

<img src="{{asset('/images/logo.png')}}" class="logomr-1" width="100" height="50">

form.blade.php

<form class="active-cyan-4"action="{{url('/search')}}">
     <input class="form-control" type="text" name="keyword" value="@if(isset($keyword))$keyword@endif"placeholder="xxxxxx">
</form>

nav.blade.php (where form.blade.php is loaded)

<ul class="navbar-navml-auto">
 @ include ('form')
</ul>

aws laravel amazon-ec2

2022-09-29 21:41

1 Answers

Normally, Ravel should separate HTTP or HTTPS from the protocol in the request, so
Perhaps the communication between EC2 and the load balancer is HTTP?
Also, maybe the Ravel version is old??
It is assumed that for some reason it will not automatically change to HTTPS.

Try using secure_asset to force HTTPS to spit it out.

<img src="{{secure_asset('/images/logo.png')}}" class="logomr-1" width="100" height="50">


2022-09-29 21:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.