# GraphQL enable CORS for production environment

**URL:** <https://discuss.workflowgen.com/t/graphql-enable-cors-for-production-environment/1797>\
**Category:** GraphQL\
**Created:** [January 28, 2021, 11:36pm UTC](https://discuss.workflowgen.com/t/graphql-enable-cors-for-production-environment/1797 "2021-01-28T23:36:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [January 28, 2021, 11:36pm UTC](https://discuss.workflowgen.com/t/graphql-enable-cors-for-production-environment/1797/1 "2021-01-28T23:36:31Z")

</div>

Hi,

How can I enable CORS for GraphQL in production environment? It seems it is only enabled for test and development environments. I need CORS in production.

Thanks,  
Gabriel

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 4, 2021, 5:51pm UTC](https://discuss.workflowgen.com/t/graphql-enable-cors-for-production-environment/1797/2 "2021-02-04T17:51:34Z")

</div>

After installing IIS Cors and adding the configuration, it now works.

Here is the documentation:

> **[GraphQL API | WorkflowGen Documentation](https://docs.workflowgen.com/integration/graphql#cross-origin-resource-sharing-cors)**
