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
nitrolys4mo ago
Error resolved, I created a new token, seems the previous one no longer works
Chaika
Chaika4mo ago
They used to default to one year/some shorter timespan other then Forever, your old token probably expired
nitrolys
nitrolys4mo ago
Got you, thanks for letting me know, it's weird that the previous one could still generate the presigned url though.
Chaika
Chaika4mo ago
Presigning is all client side Server is only involved when it tries to use the presigned URL
nitrolys
nitrolys4mo ago
I see, thanks for clarify!