# CORS error accessing API from javascript application

**URL:** <https://meta.discourse.org/t/cors-error-accessing-api-from-javascript-application/128785>\
**Category:** Development\
**Created:** [September 17, 2019, 12:49pm UTC](https://meta.discourse.org/t/cors-error-accessing-api-from-javascript-application/128785 "2019-09-17T12:49:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [September 17, 2019, 12:52pm UTC](https://meta.discourse.org/t/cors-error-accessing-api-from-javascript-application/128785/2 "2019-09-17T12:52:56Z")

</div>

We will need more information to be able to help. Can you share a code snippet showing how you are trying to use the header based authentication?

---

_[View the full topic](https://meta.discourse.org/t/cors-error-accessing-api-from-javascript-application/128785)._
