Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug]: 403 Forbidden Error on Subdomain #59

Open
robiokidenis opened this issue Jul 2, 2024 · 1 comment
Open

[Bug]: 403 Forbidden Error on Subdomain #59

robiokidenis opened this issue Jul 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@robiokidenis
Copy link

What happened?

When accessing the /themes/ path under the subdomain sub.example.com, a 403 Forbidden error is encountered. However, the same path works correctly when accessed under the main domain example.com within the /admin/ directory.

The Filament panel is set up to use a subdomain as follows:

class AppPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
        
        ....
        ->domain('sub.example.com')
 ]);
    }
}




How to reproduce the bug

  1. Navigate to sub.example.com/themes/:
  • Open a web browser and enter sub.example.com/themes/ in the address bar.
  • Observe the 403 Forbidden error.
  1. Navigate to example.com/admin/themes/:
  • Open a web browser and enter example.com/admin/themes/ in the address bar.
  • Observe that the page loads correctly without any errors.

Package Version

3.0

Filament Version

3.2

PHP Version

8.2

Laravel Version

11.9

Notes

image
@robiokidenis robiokidenis added the bug Something isn't working label Jul 2, 2024
@tsegkos
Copy link

tsegkos commented Jul 31, 2024

did you find any solution to this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants