The API issues of my website

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

I am using InfinityFree and Cloudflare to build my website, but I found that API requests require adding cookies and a user-agent. When I used other hosting services before, I didn’t need to add these request headers. This issue prevents me from making API requests on the web pages. My website does not have the ‘Under Attack’ mode enabled, and I have tried turning off the security options provided by Cloudflare, but none of it worked. Does anyone know how to solve this problem so that I can make API requests normally?

User-agent is not allowed to be added in Roblox.

(please share the FULL error message you see, if applicable)

Other Information

(other information and details relevant to your question)

I think this article perfectly applies to your situation:

To summarise the link that admin shared, InfinityFree is designed for hosting websites, to be accessed by a browser, not API’s.

Unfortunately, there isn’t a way around this for you.

OK, i know
Thanks for answering