401 unauthorized when uploading to r2 presigned url

I was using the presigned url to upload image to my r2, a few month ago it works, I didn't change anything and it broke now, I get this error. My CORS configuration should be correct. I tried to post to the url using postman, and it said 401 unauthorized, not sure if that's because of my custom domain? could anyone help me please, thanks in advance!
No description
No description
5 Replies
nitrolys
nitrolysOP9mo ago
Error resolved, I created a new token, seems the previous one no longer works
Chaika
Chaika9mo ago
They used to default to one year/some shorter timespan other then Forever, your old token probably expired
nitrolys
nitrolysOP9mo ago
Got you, thanks for letting me know, it's weird that the previous one could still generate the presigned url though.
Chaika
Chaika9mo ago
Presigning is all client side Server is only involved when it tries to use the presigned URL
nitrolys
nitrolysOP9mo ago
I see, thanks for clarify!
Want results from more Discord servers?
Add your server