# All site API requests return Error 400.

**URL:** <https://forum.ansible.com/t/all-site-api-requests-return-error-400/34817>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 20, 2021, 6:19pm UTC](https://forum.ansible.com/t/all-site-api-requests-return-error-400/34817 "2021-03-20T18:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Hunt](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@James\_Hunt](https://forum.ansible.com/u/James_Hunt)\
**Post date:** [March 20, 2021, 6:19pm UTC](https://forum.ansible.com/t/all-site-api-requests-return-error-400/34817/1 "2021-03-20T18:19:34Z")

</div>

Hi everyone, Just installed the latest version of AWX (17.1.0) and I have it behind a Nginx reverse proxy and Cloudflare access, the problem is whenever I open up the AWX site, login and try to go to any of the submenus, It returns an API error, I’ve been trying to figure out why this is but for the life of me nothing works… Error is `OPTIONS /api/v2/job_templates/ 400`, Screenshot of error: [https://jamo.tech/5jd4jfor1jr8.png](https://jamo.tech/5jd4jfor1jr8.png)

Also, the details button on the error doesn’t return anything other than “OPTIONS /api/v2/job\_templates/ 400”, I have tried taking it off of Cloudflare Access thinking maybe their CORS policy was blocking it, and had no luck with that, I’ve also took a look through the awx\_web container logs and there’s nothing there either, it shows all requests as being status code 200 so I’m quite lost.

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [March 22, 2021, 11:11pm UTC](https://forum.ansible.com/t/all-site-api-requests-return-error-400/34817/2 "2021-03-22T23:11:14Z")

</div>

Does your reverse proxy support or terminate HTTP/HTTPS? maybe your’e sending a http request to a [tower] https service?  
Otherwise you might need to do something with REMOTE\_HOST\_HEADERs - [https://docs.ansible.com/ansible-tower/3.8.2/html/installandreference/proxy-support.html#ir-proxy-support](https://docs.ansible.com/ansible-tower/3.8.2/html/installandreference/proxy-support.html#ir-proxy-support)
