# Tendo problemas para acessar as APIs do Discourse de um aplicativo React

**URL:** <https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [24 Março , 2023 17:23 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:** 4

<div class="post-metadata">

**Author:** ![fahadaslam98](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fahadaslam98/32/299547_2.png) [@fahadaslam98](https://meta.discourse.org/u/fahadaslam98)\
**Post date:** [24 Março , 2023 18:03 UTC](https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311/4 "2023-03-24T18:03:19Z")

</div>

Agora estou recebendo a resposta abaixo.

O acesso a fetch em ‘[https://boostfloral.discourse.group/latest.json?order=default&ascending=false’](https://boostfloral.discourse.group/latest.json?order=default&ascending=false%E2%80%99) da origem ‘[http://localhost:3000](http://localhost:3000/)’ foi bloqueado pela política CORS: O campo de cabeçalho da solicitação api-username não é permitido por Access-Control-Allow-Headers na resposta preflight.

---

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