# Cors Error on created new record

**URL:** <https://community.forestadmin.com/t/cors-error-on-created-new-record/3605>\
**Category:** Help me!\
**Tags:** typescript\
**Created:** [October 25, 2021, 8:41am UTC](https://community.forestadmin.com/t/cors-error-on-created-new-record/3605 "2021-10-25T08:41:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoftwareBridgementKe](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/softwarebridgementke/32/3066_2.png) [@SoftwareBridgementKe](https://community.forestadmin.com/u/SoftwareBridgementKe)\
**Post date:** [October 25, 2021, 8:41am UTC](https://community.forestadmin.com/t/cors-error-on-created-new-record/3605/1 "2021-10-25T08:41:45Z")

</div>

## Expected behavior

When using Forest Admin’s default record creation, a record should be created without any errors popping up.

## Actual behavior

When using Forest Admin’s default record creation, sometimes an error pops up:

 ![screenshot_2021-10-22_at_13.02.45](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/6/66b12bc1b9442da3550b57b487e9e2f51593b0a9.png)

This error does not consitently occur, but it does happen a significant amount of times. The data is actually added to the database and Forest Admin, so it appears everything works, except for this false error.

When checking chrome:

 ![Screenshot 2021-10-23 at 18.30.48](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/a/aa3a89064a5bc84405c982cf4328905f823c66bd.png)

It shows there is a CORS issue, but the 204 options request was successful.  
But also, the POST request always occurs with a 200 http code:

 ![Screenshot 2021-10-22 at 13.57.22](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/9/99d479a8afb9a2b6e3e79a7e3dfb19126315afa7.png)

## Context

Please provide any relevant information about your setup.

- Package Version: “forest-express-sequelize”: “^8.3.2”,
- Express Version: “express”: “^4.17.1”,
- Sequelize Version: “sequelize”: “6.6.2”,
- Database Dialect: postgresql

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [October 25, 2021, 8:43am UTC](https://community.forestadmin.com/t/cors-error-on-created-new-record/3605/2 "2021-10-25T08:43:32Z")

</div>

Hey @SoftwareBridgementKe 👋

Could you share here the console error about the cors issue?  
Could you also try to copy as cURL the failing call and share (Privately) the response of the cURL?

Thanks 🙏
