Hello I m trying to upload a file with a

Hello, I'm trying to upload a file with a pre-signed URL to R2 using the browser and I'm getting a 403 CORS error. Does anyone know how to solve this problem? My CORS policy: [ { "AllowedOrigins": [ "*" ], "AllowedMethods": [ "GET", "PUT", "HEAD" ], "AllowedHeaders": [ "Content-Type" ] } ]
2 Replies
ale
ale•2y ago
Hi, hi Niceman 👋 Are you still seeing this error? If so, how are you generating the pre-signed URL and what is the request that is causing this CORS error?
Niceman
NicemanOP•2y ago
I am creating the presignedURL from my server, and the request that gives me a CORS error is when trying to upload the file from the browser. Specifically, the preflight request that it makes gives me a CORS error since the request method is PUT.
Want results from more Discord servers?
Add your server