Blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested
📏RulesREST API⚔️Security
Hello, im not sure what exactly causing it in cloudflare but this happens, Access to XMLHttpRequest at 'https://api.domain.com/hello' from origin 'https://domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I have used react cloudflare static webhosting in worker pages and backed in running in ec2,
I have only 1 custom rule, that is for rate limiting, If i disable that rule then theres no problem, so I think that rule is blocking some cors header or something to backend I guess.... How to fix that, or any other better approach for rate limiting.