# Recieving CORS error when creating customer

**URL:** <https://discuss.dwolla.com/t/recieving-cors-error-when-creating-customer/5619>\
**Category:** API Support\
**Created:** [March 25, 2020, 6:17am UTC](https://discuss.dwolla.com/t/recieving-cors-error-when-creating-customer/5619 "2020-03-25T06:17:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ernest\_O](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/ernest_o/32/2353_2.png) [@Ernest\_O](https://discuss.dwolla.com/u/Ernest_O)\
**Post date:** [March 25, 2020, 6:17am UTC](https://discuss.dwolla.com/t/recieving-cors-error-when-creating-customer/5619/1 "2020-03-25T06:17:25Z")

</div>

Hello,  
I am catching an a CORS error as evident below, when trying to create a customer (Sandbox mode) via the dwollaJS package. I am able to make a request when i try running the JS file that includes the calls via NodeJS but when i attempt to invoke the methods in my reactJS page i get the error below:

 ![image](https://global.discourse-cdn.com/dwolla/original/2X/3/3e7ae6b9f7e4c74f79f4e774229af7725100e853.png)

I have tried searching all over for a solution to the issue but everything points to this being an issue with a server response. Is there anything I can do to get this up and running? Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![spencer](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/spencer/32/2143_2.png) [@spencer](https://discuss.dwolla.com/u/spencer)\
**Post date:** [March 25, 2020, 1:10pm UTC](https://discuss.dwolla.com/t/recieving-cors-error-when-creating-customer/5619/2 "2020-03-25T13:10:27Z")

</div>

Hi @Ernest_O, Unfortunately the only calls to Dwolla that can be made from the client-side of your app are those that are done using the [dwolla.js library](https://developers.dwolla.com/resources/dwolla-js.html). This JS library is used to add a bank to a Customer and requires unique tokens to be generated in order to authenticate requests. Calls to `https://api-sandbox.com/token` will need to be made from your back-end server (via Node.js), which should securely store your API credentials and manage other business logic surrounding payments.
