Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

debjit's avatar

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.

0 likes
2 replies
dvandalen's avatar

Which url is throwing the error? Your app or the s3 server?

debjit's avatar

When Livewire is trying to upload an image, it shows an error. When it is doing a flight check before putting in s3 bucket. The file is not getting saved on the Backblaze server.

Please or to participate in this conversation.