# CORS Content-Type application/json fails

**URL:** <https://discuss.circleci.com/t/cors-content-type-application-json-fails/10569>\
**Category:** Build Environment\
**Tags:** api\
**Created:** [February 23, 2017, 7:34am UTC](https://discuss.circleci.com/t/cors-content-type-application-json-fails/10569 "2017-02-23T07:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![33Stylus](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/33stylus/32/6933_2.png) [@33Stylus](https://discuss.circleci.com/u/33Stylus)\
**Post date:** [February 23, 2017, 7:34am UTC](https://discuss.circleci.com/t/cors-content-type-application-json-fails/10569/1 "2017-02-23T07:34:11Z")

</div>

I have a bash script that runs a parameterized build just fine, but I am trying to create a single page app that does the same, and I can’t get the POST request to work at all. I have CORS enabled on chrome, and can do GET requests and POST strings, but not json. I am using the node request module, and everything is set right according to those docs to send json, this is supported according to the Circle CI docs.

---

<div class="post-metadata">

**Author:** ![zzak](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/zzak/32/4233_2.png) [@zzak](https://discuss.circleci.com/u/zzak)\
**Post date:** [March 2, 2017, 1:44pm UTC](https://discuss.circleci.com/t/cors-content-type-application-json-fails/10569/2 "2017-03-02T13:44:07Z")

</div>

Hello @33Stylus,

Could you share the script that schedules the build?

Feel free to remove any tokens, org, or project names so that you can post it here.

Best, Zak

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/cors-content-type-application-json-fails/10569/3 "2018-06-18T11:39:13Z")

</div>


