# Having issue accessing the Discourse APIs from react app

**URL:** https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311
**Category:** Development
**Tags:** rest-api
**Created:** [March 24, 2023, 5:23pm UTC](https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311 "2023-03-24T17:23:05Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [April 10, 2023, 10:35pm UTC](https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311/8 "2023-04-10T22:35:21Z")

</div>

Yes, thanks! This has been solved for me here: [Using JavaScript fetch to get publicly available page from Discourse into an external site (Discourse API) - #2 by pfaffman](https://meta.discourse.org/t/using-javascript-fetch-to-get-publicly-available-page-from-discourse-into-an-external-site-discourse-api/261062/2)

@fahadaslam98 as @RGJ said, if the CORS is properly configured then removing the API keys from the headers should work, 👍

---

_[View the full topic](https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311)._
