Hi, I’ve deployed project for IMDB Api from github on Worker: github com/tuhinpal/imdb-api
I’m making requests to ''imdb-api projects username com/title/ttId" and after 5-10 requests I’m getting 403 code and error:
Access to XMLHttpRequest at ‘imdb-api username workers dev/title/tt0398921’ from origin ‘localhost:3000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
This error only happens when I’m using endpoint title
When I use ''imdb-api projects username com/search?query=query", I have no errors, despite the amount of requests.
I tried making pauses between requests (1s-2s-5s-10s), but the problem still exists, please help