F
Filamentβ€’2y ago
toeknee

FileUpload with CORS?

Using FileUpload on a stack with multi-domain support, when using a domain that is not the primary, we get a CORS request. IS there a way for it to ensure it uses the correct domain that the field is being served from?
6 Replies
Dennis Koch
Dennis Kochβ€’2y ago
Update the config based on the current domain? πŸ€”
toeknee
toekneeOPβ€’2y ago
Dynamic in the session? Hmmm
Dennis Koch
Dennis Kochβ€’2y ago
Yes
toeknee
toekneeOPβ€’2y ago
Familiar with any examples? I had tried in the app service provided on boot. But this wasn't effecting it.
Dennis Koch
Dennis Kochβ€’2y ago
Or adjust your Cors headers πŸ˜… Probably the better way
toeknee
toekneeOPβ€’2y ago
I am trying to get rid of the second url tbh, I'm starting to wish I created a separate app with communication with the primary lols Okkkk I think I can do this with a custom disk driver actually πŸ˜„
Want results from more Discord servers?
Add your server