Cant fetsh my data into my web app

Error Message

Access to fetch at ‘https://clinic.infinityfree.io/doctors.php’ from origin ‘http://localhost:5173’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Other Information

when i try to access the that url directly in the browser it show me formal json data array but when it came to my webapp it give me the error above fyi i did make all the cors headers in my all files but still have this issues

Welcome to the community.
CORS is disabled on free hosting and cannot be activated. Consequently, any requests sent to your site from an external domain will be blocked.

Welcome to the forum

This is intentional behaviour. Hosting here is designed for websites, to be accessed by a browser.

The hosting here is not intended for API hosting, which is what you’re trying to do.

so only websites built in php and uploaded in file manager can be accessed in this host
thats what i understand

Websites built in PHP, or html (or javascript) can be uploaded either via the file manager or an FTP client.

Or you can build sites with tools like wordpress or the site pro site builder.

As per the terms and conditions, InfinityFree offer Website hosting, not API hosting