Digital ocean spaces cors errors
i am trying upload image with field, but i receive this:
8 Replies
Can you show the contents of your
config/cors.php
file?
I am using filament 2 yet
Usually when CORS is an issue with assets like this it's because that remote server doesn't have a CORS rule set up for what you're trying to do.
You can't fix that in your application code. You have to fix it in CORS policy settings on your CDN side.
Good catch, I was thinking backwards....this error shows that you need to add "localhost" from the digital ocean side as DrByte mentioned
https://docs.digitalocean.com/products/spaces/how-to/configure-cors/
It is my cors configuration on bucket
I would assume a file upload would be a "POST" request I think
Solution
I SOLVED, THE PROBLEM IS: DATETIME OF MY COMPUTER