Which url is throwing the error? Your app or the s3 server?
Aug 20, 2023
2
Level 2
Livewire(Filament) CORS error with blackblaze.
Github Repo(dev branch):
https://github.com/debjit/hackathon-bdd
I am using s3 compatiable api to upload using filament, but I found when uploading livewire is getting CORS policy error. I do not have any CORS policy enabled. options "hare everything in this bucket with all HTTPS origins" is checked and here is my cors policy,
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => ['https://hackathon-bdd.test/*','*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
here is env,
FILESYSTEM_DISK=bb2
FILAMENT_FILESYSTEM_DISK=local
So filament /Livewire should use local disk but it is not doing that. Well normal upload does work,
$test = Storage::disk('bb2')->put('example1.txt', 'Contents');
Will work and store the example1.txt file.
Please or to participate in this conversation.