Fix: Setup-Wizard bei HTTPS auf HTTP umleiten

Vor SSL-Zertifikaten schlägt Livewires AJAX über HTTPS fehl.
mount() leitet automatisch auf http:// um damit der Wizard funktioniert.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
boban 2026-04-24 14:04:50 +02:00
parent 31f486c753
commit 0b415c6862
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ class Wizard extends Component
public function mount(): void public function mount(): void
{ {
if (request()->secure()) {
redirect()->to('http://' . request()->getHttpHost() . '/setup')->send();
exit;
}
$this->instance_name = config('app.name', 'Mailwolt'); $this->instance_name = config('app.name', 'Mailwolt');
try { try {
$this->timezone = Setting::get('timezone', 'Europe/Berlin'); $this->timezone = Setting::get('timezone', 'Europe/Berlin');