# Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource

**URL:** <https://community.forestadmin.com/t/response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/410>\
**Category:** Help me!\
**Created:** [June 4, 2020, 9:27am UTC](https://community.forestadmin.com/t/response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/410 "2020-06-04T09:27:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)\
**Post date:** [June 5, 2020, 7:45am UTC](https://community.forestadmin.com/t/response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/410/5 "2020-06-05T07:45:39Z")

</div>

Hello @rohit_ja 👋

For your convenience, when you deploy an app anywhere and need to set CORS, you can use an environment variable called `CORS_ORIGINS`. In your case you can use `CORS_ORIGINS=https://app.forestadmin.com` (I don’t know your provider, but setting an env variable can be done either in your remote instance configuration, or using the `.env` file 👍 )

Can you test again using this variable and removing the additional middleware please ?

Keep me in touch 🙌

---

_[View the full topic](https://community.forestadmin.com/t/response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/410)._
