Mun
CDCloudflare Developers
•Created by Mun on 5/18/2023 in #r2
Removing the slashes does not help
Interesting.. changing the "post" to "put" worked.
31 replies
CDCloudflare Developers
•Created by Mun on 5/18/2023 in #r2
Removing the slashes does not help
trying to upload a file
31 replies
CDCloudflare Developers
•Created by Mun on 5/18/2023 in #r2
Removing the slashes does not help
I am doing the following and getting a CORS error:
fetch(presignedURL, {
method: "post",
body: formData
}).catch(console.error)
31 replies
CDCloudflare Developers
•Created by Mun on 5/18/2023 in #r2
Removing the slashes does not help

31 replies
CDCloudflare Developers
•Created by Mun on 5/18/2023 in #r2
Removing the slashes does not help
Sorry dont know why it wasnt showing the "" but some sort of error on copy/paste. But I did try removing teh trailing "/" and that did not do anything. So I decided to go the nuclear approach and just putting wildcards everywhere. That isn't working either
[
{
"AllowedOrigins": [
""
],
"AllowedMethods": [
"DELETE",
"HEAD",
"GET",
"PUT",
"POST"
],
"AllowedHeaders": [
"*"
]
}
]
31 replies
CDCloudflare Developers
•Created by Mun on 5/18/2023 in #r2
Removing the slashes does not help
@sdnts This is what my CORS policy looks like now and I still dont have any luck:
[
{
"AllowedOrigins": [
""
],
"AllowedMethods": [
"DELETE",
"HEAD",
"GET",
"PUT",
"POST"
],
"AllowedHeaders": [
""
]
}
]
31 replies