Skip to content

Uncaught Error: Disallowed operation called within global scope #35

Answered by MathurAditya724
brachkow asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is you are running this in Cloudflare env, either workers or pages. You will have to pass a store as by default it uses a memory store that cannot run in Cloudflare. If you want to use Cloudflare infra as a store, you can look into this https://www.npmjs.com/package/@hono-rate-limiter/cloudflare.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brachkow
Comment options

@MathurAditya724
Comment options

Answer selected by MathurAditya724
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants