CORS setup with custom FILAMENT_DOMAIN

Hello guys,
How can I setup the Laravel CORS settings when using a subdomain to access filament?

When I try to see the uploaded images I get this error:

Access to fetch at 'http://FILAMENT_DOMAIN.test/medias/160/8066_zaino-vespa-v-stripes-a-tracolla-colore-nero-giallo_1695202495_.png' from origin 'http://admin.FILAMENT_DOMAIN.test' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I have tried to edit the cors.php in all possible ways without success.

Any hints?

Thanks!
Was this page helpful?