Upload images to the page, the project uses https
When I try to upload the image to the page to add this image, the upload fails because the project uses https and the links in the images request http

4 Replies
You haven't enforced https then, check app_url setting in the .env? And where are you uploading too? Local storage?
Yes, I checked the app_url in the env file.
Yes, in the Local storage disk (public).
the problem solved by using this for livewire :
AppServiceProvider.php
public function boot()
{
if ($this->app->environment('production')) {
URL::forceScheme('https');
// Specifically for Livewire
$this->app['request']->server->set('HTTPS', 'on');
}
}
thank you
but when i wanna edit record the image still loading without appear
like this

You have something else going on enforicng http not https. I suspect if you review the network logs the loading will be a 401/403.