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
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?
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.