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
No description
4 Replies
toeknee
toeknee3w ago
You haven't enforced https then, check app_url setting in the .env? And where are you uploading too? Local storage?
Shaza
ShazaOP3w ago
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
Shaza
ShazaOP3w ago
No description
toeknee
toeknee3w ago
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.

Did you find this page helpful?