# Cannot get WP Json from WordPress

**URL:** https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344
**Category:** Hosting Support
**Created:** [August 13, 2020, 1:41am UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344 "2020-08-13T01:41:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![anon79392532](https://forum.infinityfree.com/letter_avatar/anon79392532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon79392532](https://forum.infinityfree.com/u/anon79392532)
#### Post date: [August 13, 2020, 1:41am UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/1 "2020-08-13T01:41:05Z")

</div>

I have a JSON data which I have problem retrieving from my wordpress headless CMS [SITE HERE](http://jameslaiproductions.gq/wp-json/wp/v2/posts)

I can retrieve them through my Chrome Browser. But I have problem retrieving it in my [CODESANDBOX HERE](https://codesandbox.io/s/epic-sanderson-zpm8n?file=/src/component/Test01.js).

In this same codesandbox, I can successfully retrieve data from any of the other two WP-JSON url.

I had tried the following to resolve this issue:

1. Uninstalled & reinstalled wordpress. Still the same results.
2. Installed & Uninstalled ACME SSL certificate. Still the same results.
3. Installed & Uninstalled cloudflare’s SSL certificate. Still the same results.

This seems like it may be an error in the way the web server is responding. May I know how to solve this issue?

---

<div class="post-metadata">

### Author: ![anon81626513](https://forum.infinityfree.com/letter_avatar/anon81626513/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon81626513](https://forum.infinityfree.com/u/anon81626513)
#### Post date: [August 13, 2020, 7:28am UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/2 "2020-08-13T07:28:54Z")

</div>

They do not work, due to the security system;

> **[Ensuring only web browsers can access your website](https://forum.infinityfree.com/docs?topic=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,...

---

<div class="post-metadata">

### Author: ![anon79392532](https://forum.infinityfree.com/letter_avatar/anon79392532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon79392532](https://forum.infinityfree.com/u/anon79392532)
#### Post date: [August 13, 2020, 7:56am UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/3 "2020-08-13T07:56:24Z")

</div>

Ok noted.

Just to make sure;

1. Is there any way to workaround this?
2. Which webhosting services allows me to get data from my WP-Json rest API?

---

<div class="post-metadata">

### Author: ![anon81626513](https://forum.infinityfree.com/letter_avatar/anon81626513/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon81626513](https://forum.infinityfree.com/u/anon81626513)
#### Post date: [August 13, 2020, 8:42am UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/4 "2020-08-13T08:42:55Z")

</div>

1, No, There is not  
2, I highly doubt any free ones.

---

<div class="post-metadata">

### Author: ![anon79392532](https://forum.infinityfree.com/letter_avatar/anon79392532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon79392532](https://forum.infinityfree.com/u/anon79392532)
#### Post date: [August 13, 2020, 12:23pm UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/5 "2020-08-13T12:23:41Z")

</div>

I see. Given that there are no free hosting available, which ones do most people usually use to host their WP Headless CMS?

---

<div class="post-metadata">

### Author: ![anon81626513](https://forum.infinityfree.com/letter_avatar/anon81626513/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon81626513](https://forum.infinityfree.com/u/anon81626513)
#### Post date: [August 13, 2020, 1:58pm UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/6 "2020-08-13T13:58:01Z")

</div>

I do not know, IFastNet Premium hosting is like this hosting, with no security system & no limits (Starts at 3.99 a month) ([Ifastnet.com](http://Ifastnet.com)) & automatic SSL so now configuring it

---

<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: [August 28, 2020, 1:58pm UTC](https://forum.infinityfree.com/t/cannot-get-wp-json-from-wordpress/34344/7 "2020-08-28T13:58:08Z")

</div>

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