FIX: Fixed issue with mixed content

This commit is contained in:
nikurasu 2022-01-02 17:44:58 +01:00
parent 3967e543a0
commit c07caafc91
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -23,6 +24,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
if(config('app.env') === 'production') {
URL::forceScheme('https');
}
}
}