Is it possible for my worker to only accept requests from my domain while also limiting the amount of requests people can do from that domain? In my case people can go to my website/domain and press buttons that fire events to my worker, now I want to prevent people from just spamming my worker till my costs explode. Is there any easy way to do this?
#How to rate-limit and only allow request from specific origin for my worker?
6 messages · Page 1 of 1 (latest)
Not really. Assuming that this is an issue, there isn’t a surefire way to detect where a request is coming from
Though this applies to any HTTP-based origin, not just Workers