# My domain work in browser but doesn't work in my front end code

**URL:** <https://forum.infinityfree.com/t/my-domain-work-in-browser-but-doesnt-work-in-my-front-end-code/74769>\
**Category:** Hosting Support\
**Created:** [April 15, 2023, 12:13am UTC](https://forum.infinityfree.com/t/my-domain-work-in-browser-but-doesnt-work-in-my-front-end-code/74769 "2023-04-15T00:13:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon89212546](https://forum.infinityfree.com/letter_avatar/anon89212546/32/6_449c533f586939b6e5f246632a46421f.png) [@anon89212546](https://forum.infinityfree.com/u/anon89212546)\
**Post date:** [April 15, 2023, 12:13am UTC](https://forum.infinityfree.com/t/my-domain-work-in-browser-but-doesnt-work-in-my-front-end-code/74769/1 "2023-04-15T00:13:47Z")

</div>

### Website URL

[(please specify the URL of the site on which you are experiencing the problem)](http://doctornow.infinityfreeapp.com/API/Doctors/Select.php)

### Error Message

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

### Other Information

(other information and details relevant to your question)

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [April 15, 2023, 12:24am UTC](https://forum.infinityfree.com/t/my-domain-work-in-browser-but-doesnt-work-in-my-front-end-code/74769/2 "2023-04-15T00:24:32Z")

</div>

Welcome

It looks like your PHP code is malfunctioning. Please make sure the code is correct, and you have uploaded everything that is needed for the file to run properly.

---

<div class="post-metadata">

**Author:** ![SpookyKipper](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/spookykipper/32/27461_2.png) [@SpookyKipper](https://forum.infinityfree.com/u/SpookyKipper)\
**Post date:** [April 16, 2023, 3:02am UTC](https://forum.infinityfree.com/t/my-domain-work-in-browser-but-doesnt-work-in-my-front-end-code/74769/3 "2023-04-16T03:02:10Z")

</div>

If you are talking about some external code with API, it’s likely due to:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

---

<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:** [April 23, 2023, 3:02am UTC](https://forum.infinityfree.com/t/my-domain-work-in-browser-but-doesnt-work-in-my-front-end-code/74769/4 "2023-04-23T03:02:53Z")

</div>

Closed on April 23, 2023, 3:02am UTC

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