How can i hide Rest API response from URL visitors ?
-
I am working on a test project. I am using ReactJS for frontend and wordpress for backend like Headless CMS. I am making API calls to fetch all wordpress posts through ReactJS and it is working fine. The only thing i need is to hide the JSON whenever anyone try to browse the URL in any browser. It should not show my personal site data in the form of JSON.
I don’t wanna disable the rest API because it will stop answering my API calls of ReactJS. In simple I just want to HIDE the JSON response. Can someone tell me how this is achievable ?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can i hide Rest API response from URL visitors ?’ is closed to new replies.