Palash Bansal
CDCloudflare Developers
•Created by Mustafa Akın on 10/7/2023 in #workers-help
Use D1 Database without binding
Docs mention you can have upto 5000 bindings: https://developers.cloudflare.com/d1/platform/limits/
And there are APIs to create D1 database and patch the worker and patch the worker script to add a new binding
https://developers.cloudflare.com/api/operations/cloudflare-d1-create-database
https://developers.cloudflare.com/api/operations/worker-script-patch-settings
2 replies
CDCloudflare Developers
•Created by oldmanmeta on 10/13/2023 in #r2
CORS
I have had this issue before, when using an R2 or GCP bucket with multiple origins in cors policy and also caching on cloudflare.
Since the origin is in the response headers, its also cached when you open it from one domain in the browser
I tried Vary: Origin header but it doesnt work always
The only proper workaround I found for this is to add the origin or something in the query string with the URL.
If anyone from CF is aware of any other solution, it would be helpful
18 replies