Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Sudden CORS issue on R2 presigned PUT URL — any recent changes in Workers or R2?

I’ve been using Cloudflare R2 with presigned PUT URLs generated through a Cloudflare Worker for a long time without issues. The frontend directly uploads to R2 using the signed URL, and everything worked perfectly — until recently. Now, I’m suddenly getting this browser error: Access to XMLHttpRequest at 'https://<bucket>.<account>.r2.cloudflarestorage.com/...' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource....

Error: Cannot find module 'cloudflare:workers'

I am unable to access bindings as its giving me error in my sveltekit app please help as i want to access hyperdrive binding through import { env } from 'cloudflare:workers';...

web dash shows queues unavailable

queues unavailable for workers free plan. But when I go to workers plan my plan is "paid". Help?

Question: Suppressing/Hiding Automatic Request Logs for Specific Endpoints

Hi! I have a high-frequency bot endpoint that's called very frequently (hundreds/thousands of times per hour) and it's cluttering my logs with automatic request logs like: POST https://my.endpoint/not_a_real_endpoint- Ok @ 10/11/2025, 12:46:04 pm 1. Is there a way to suppress/hide automatic request logs for specific endpoints in Cloudflare Workers? 2. Can I filter these out in wrangler tail...

How to set provider specific options with ai gateway dynamic routing?

I want to use AI gateway dynamic routing. However, it seems only support the basic use cases. With universal endpoint, I have full control on the payload for each fallback options so I can set provider specific options like thinking token budgets. How can I reimplement this with dynamic routing?...

Both deployed pages return ERR_CONNECTION_TIMED_OUT

Hi I have 2 Cloudflare Pages deployed and both are giving me timeouts when loading. Both the dev domain and the custom one. They used to work fine and all of a sudden they stopped working, no changes done on my end and I am using the free tier.

ES Module Import Map Breaking Due to Automatic Link Header Generation

Hey, so in the docs there is a section saying that:
Warning ...

What is the best strategy to control worker scaling?

There are many great things about Cloudflare as a platform when you have paid account. Also, everything is limit guarded and counted towards your bill, except worker scaling. That has no limit, afaik. What is the best approach on $5 paid tier to avoid an unpleasant morning surprise? Besides ddos or other script kiddies trying to temper with the API, there could be also a dev mistake in a form of a recursive call anywhere in the stack (we've seen even the best are not immune to this). I'm aware there are some notifications but I don't want to be in constant FOMO waiting for those and it could be late when they come....

Fetch inside worker not caching url, when the url is another worker form another account.

I have a worker A, which is running in separate account which returns a static file on GET request with proper cache control headers for caching. This worker A acts like a origin. Now when i do a fetch from a worker B, which is running in another account , the fetch is not caching the url response from worker A. Since i have set proper cache control, worker B should consider worker A like any other origin and cache it right ?. Am i missing something ?...

The Workers runtime canceled this request because it detected that your Worker's code had hung and w

Stack: NextJS (Frontend and backend), Typescript, Mongo as well as Open AI API. Hey everyone. I recently started getting this Cloudflare error recently (~1-2 days ago). I've attached the code as well. The behavior is as follows. Usually upon entering the app and searching, the app will successfully return a 200 status with the expected data returned. However, after that it starts to send this error. ...
No description

How to debug a worker (Nuxt site) that sometimes just doesn't load on a cold start?

It just never resolves, endless loading. It is connected to a db but it's D1
No description

Why purging cache by tags purges other caches?

in worker I request https://httpbin.io/get?time=${new Date().toLocaleString()} then add headers Cache-Control max-age=60; s-maxage=60 it's cached, second request to worker returns HIT.. but when I call purging cache tag "offers": curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/purge_cache -H 'Content-Type: application/json' ...

This Site Can't be Reached in Certain Region or happens randomly

Hi , I am Vijayabaskar from India, I am building a TANCN (OSS Project), I have my application deployed on Cloudflare, I have also purchased a domain tancn.dev from the cloudflare itslef, I love cloudfare and wrangler in general , Now I have a issue which is been bugging me lately, that is my site tancn.dev is randomly throwing 500 error or This Site Can't be reached error from the user Here is a issue from one of my users : https://github.com/Vijayabaskar56/tancn/issues/30 , and I am not sure that is affecting certain region or affecting randomly , there is no error reported on the dashboard or misconfigured domain ...

Can't have runtime edge code on "top level" despite it was the same on the previous version of file

For some reason when I try to build my pages into a worker with opennextjs when I'm migrating from next-auth to better-auth, I get the
`getRequestContext` is being called at the top level of a route file, this is not supported
`getRequestContext` is being called at the top level of a route file, this is not supported
error, despite before when I still use next-auth, the runtime edge code was also on the top, literally. I'm losing my mind over this, does anyone know where I've gone wrong? (Image information on each image's alt)
route.ts (api/auth/[...all])

Using Wrangler environments and the Nuxt template

Hi everyone, this is my first time using cloudflare so sorry if I'm missing something obvious! I've created a Nuxt project with the help of npm create cloudflare I then deployed it successfully with no changes. Now I want to setup environments so I can run a separate dev worker with a separate D1 database and then deploy them from GitLab. So I made the following changes to the wrangler file: ```...

There is an internal issue with your Cloudflare Workers & Pages Git installation.

Hi guys, I messed up. I transferred ownership of my Git that was linked to a pages deployment to an organization that I own on Github, and it now just gives me the orange "There is an internal issue with your Cloudflare Workers & Pages Git installation. If this issue persists after reinstalling your installation please contact support." error inside the pages build settings and I can't change the linked github to the one that was transferred to the org. Please help!!

How to view logs for non-prod environment deployments in Cloudflare Workers?

Hey everyone, I have a Cloudflare Worker that uses multiple environments I’ve deployed a non-prod environment (say, branch1 ) using wrangler, and I can access it via the environment-specific preview URL. However, I’m not sure how to view logs specifically for this non-prod environment....

For business accont I can purge by Cache-Tag but can't save cache with Cache-Tag?

Am I understanding it correctly? Tried adding cacheTag to fetch cf: {} and also tried setting in response header ( https://httpbin.io/response-headers?Cache-Tag=offers&time=time ) and seems like it's not working...

Worker cron invalid?

I wanted to run a cron every sunday on 3 AM, however when deploying, I get an error saying the cron trigger is invalid: "0 3 * * 0" As you can see here, it should be valid: https://crontab.guru/#0_3_*_*_0 How can this be?...