I’m trying to upload an image to CloudFlare from DigitalOcean’s App platform with Laravel 10 and Livewire 3. I wrote a service for this and this service api was written according to CloudFlare’s api document. My project runs smoothly on local, but on my production server, when I press the “Select File” button, mark the file, and then press the “Open” button, it gives an error. When I look at the console, I see the error “Failed to load resource: the server responded with a status of 401 ()”. What could be the problem with this and how can I solve it?
There are no error on logs and no error return to screen (APP_DEBUG=true).