Closed futurfuturfuturfutur closed 2 months ago
when i added the current meta tag is error fixed !
in : resources/views/index.blade.php
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
Set up forceScheme for env with https
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot(): void
{
if($this->app->environment('production')) {
\URL::forceScheme('https');
}
}
}
It works on local with http, but failed on stage environment with https