# Cant fetsh my data into my web app

**URL:** <https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440>\
**Category:** Hosting Support\
**Created:** [June 24, 2026, 3:27pm UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440 "2026-06-24T15:27:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsAmjed](https://forum.infinityfree.com/letter_avatar/itsamjed/32/6_449c533f586939b6e5f246632a46421f.png) [@itsAmjed](https://forum.infinityfree.com/u/itsAmjed)\
**Post date:** [June 24, 2026, 3:27pm UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440/1 "2026-06-24T15:27:38Z")

</div>

### Error Message

Access to fetch at ‘[https://clinic.infinityfree.io/doctors.php](https://clinic.infinityfree.io/doctors.php)’ from origin ‘[http://localhost:5173](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

---

<div class="post-metadata">

**Author:** ![wasik405](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wasik405/32/55080_2.png) [@wasik405](https://forum.infinityfree.com/u/wasik405)\
**Post date:** [June 24, 2026, 4:35pm UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440/2 "2026-06-24T16:35:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [June 24, 2026, 4:35pm UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440/3 "2026-06-24T16:35:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![itsAmjed](https://forum.infinityfree.com/letter_avatar/itsamjed/32/6_449c533f586939b6e5f246632a46421f.png) [@itsAmjed](https://forum.infinityfree.com/u/itsAmjed)\
**Post date:** [June 24, 2026, 4:48pm UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440/4 "2026-06-24T16:48:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [June 24, 2026, 5:11pm UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440/5 "2026-06-24T17:11:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 4, 2026, 1:04am UTC](https://forum.infinityfree.com/t/cant-fetsh-my-data-into-my-web-app/119440/7 "2026-07-04T01:04:46Z")

</div>

Closed on July 4, 2026, 1:04am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
