Getting CORS errors trying to upload to

Getting CORS errors trying to upload to a presigned url.
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"POST",
"DELETE",
"PUT",
"HEAD"
],
"AllowedHeaders": [
"*"
],
"ExposeHeaders": []
}
]
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"POST",
"DELETE",
"PUT",
"HEAD"
],
"AllowedHeaders": [
"*"
],
"ExposeHeaders": []
}
]
FWIW I'm using this snippet for generating the signed headers for the upload https://gist.github.com/chrismccord/37862f1f8b1f5148644b75d20d1cb073
5 Replies
wot
wotOP2y ago
I changed the url to include the bucket name (oops). Now I just get this error:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><Message>Invalid Argument: Authorization</Message></Error>
<?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><Message>Invalid Argument: Authorization</Message></Error>
kian
kian2y ago
R2 doesn’t support S3 POST You’ll need to generate a presigned URL for PutObject
wot
wotOP2y ago
Ah thanks for letting me know
Niek
Niek2y ago
is there any chance to support this in the (near) future? I would love to use R2 with outline (https://github.com/outline/outline) but it requires S3 POST support
kian
kian2y ago
I have no idea, I'd assume so though
Want results from more Discord servers?
Add your server