F
Filament2mo ago
Cager

Multi tenancy file upload/edit

Hello, I'm trying to create an Multi tenancy app with filament. I successfully upload a photo but I get cors error on images when I try to edit my "product" where I have those photos. I'm using subdomain multi tenancy. I've set allow origins to '*' etc, but nothing works, only thing that works is manually changing disk url to that of my shops subdomain but that is not a solution.
2 Replies
Julien B. (aka yebor974)
Hi. Do you have a web proxy. In console have you a cor error ?
Cager
CagerOP2mo ago
Sorry for not responding earlier, didnt get notification for this for some reason. I solved it by middleware where I would adjust link returned based on current tenant.

Did you find this page helpful?