max
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
Tried
console.log(await s3Client.send(new ListBucketsCommand({})))
from the examples, got an error
Changed the api token from object to admin
Managed to list
Changed it back
Managed to upload one time
Repeated the upload - 403
The good news is cors seems solved, the bad news is the inconsistent 40312 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
Tried rotating the keys and every variation of the policy JSON i can think of, still getting the
No 'Access-Control-Allow-Origin' header is present on the requested resource.
12 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
12 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
one sec
12 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
nvm still same issue
12 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
oh i think i fixed it, changed
AllowedHeaders
to
and now it's a 403 instead of preflight error, so i can at least debug further 😄12 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
not at the moment, it's rather painful to extract from the main project 🫠
12 replies
CDCloudflare Developers
•Created by max on 4/17/2025 in #workers-help
R2 seems to be ignoring the CORS policy
i've seen this + multiple forums post, no dice
12 replies
CDCloudflare Developers
•Created by max on 4/7/2025 in #workers-help
Worker deploys fine via Wrangler and Web UI but fails via API with SyntaxError
Yeah I don't think i've seen this in the docs
Halfway through debugging I had a hope that maybe
cloudflare
Node package would help but that isn't super documented either 😄
Either way, thanks for the help 🙏🏻8 replies
CDCloudflare Developers
•Created by max on 4/7/2025 in #workers-help
Worker deploys fine via Wrangler and Web UI but fails via API with SyntaxError
Deployed succesfuly
Thanks! 🙌🏻
8 replies