Restricting Admin Panel Access to Root Domain

I recently updated my Laravel application to Filament V3 and encountered an issue with the removal of the .env variable FILAMENT_DOMAIN, which was available in Filament V2. In my previous setup, I relied on this variable to restrict access to the admin panel exclusively from the root domain. After the update, it seems I can now access the admin panel from subdomains like "api," which is not the behavior I want. Has anyone else faced this issue, and if so, how did you solve it? I'd appreciate any guidance or solutions to ensure that my admin panel can only be accessed from the root domain.
1 Reply
Want results from more Discord servers?
Add your server