stillmotion
stillmotion
Explore posts from servers
CDCloudflare Developers
Created by stillmotion on 3/22/2024 in #workers-help
Next.js getPlatformProxy R2 binding not uploading to bucket?
Yeah that answers my question. Would be nice to emulate it, however. Seems like I’ll need to proxy to the aws api for development
3 replies
CDCloudflare Developers
Created by Maxou44 on 10/2/2022 in #r2
I get a 200 but I always have CORS
Had this issue. It could be a few things: - Your access token to R2 could be expired - The CORS settings on the bucket's configuration page are incorrect (the CORS params passed to the presigned url request do nothing). Here's mine:
[
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD",
"PUT",
"DELETE"
],
"AllowedHeaders": [
"Content-Type",
"range",
"Vary"
],
"ExposeHeaders": [
"Content-Type",
"Access-Control-Allow-Origin",
"ETag",
"Vary"
],
"MaxAgeSeconds": 3600
}
]
[
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD",
"PUT",
"DELETE"
],
"AllowedHeaders": [
"Content-Type",
"range",
"Vary"
],
"ExposeHeaders": [
"Content-Type",
"Access-Control-Allow-Origin",
"ETag",
"Vary"
],
"MaxAgeSeconds": 3600
}
]
59 replies
CDCloudflare Developers
Created by oldmanmeta on 10/13/2023 in #r2
CORS
Thank you for this, have been encountering this issue for the past couple of weeks and this work around works!
18 replies