If you SSL the web app on EC2 and access the site, it says unprotected communication.
The reason seems to be that the image used in the logo is not httpsed from the developer tool below.
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>
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">
© 2024 OneMinuteCode. All rights reserved.