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

**URL:** <https://meta.discourse.org/t/cannot-redirect-to-discourse-error-response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/65191>\
**Category:** WordPress\
**Created:** [2017 年 6 月 27 日午後 12:06 UTC](https://meta.discourse.org/t/cannot-redirect-to-discourse-error-response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/65191 "2017-06-27T12:06:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Toan\_Bao\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toan_bao_nguyen/32/74455_2.png) [@Toan\_Bao\_Nguyen](https://meta.discourse.org/u/Toan_Bao_Nguyen)\
**Post date:** [2017 年 6 月 29 日午前 2:58 UTC](https://meta.discourse.org/t/cannot-redirect-to-discourse-error-response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/65191/5 "2017-06-29T02:58:28Z")

</div>

I need AJAX for my back-end server side, and I have found that it is about CORS. When I try unchecking the ‘Automatically create and login users’ option, it works but not auto like I said. Any suggestion would be appreciated.

---

_[View the full topic](https://meta.discourse.org/t/cannot-redirect-to-discourse-error-response-to-preflight-request-doesnt-pass-access-control-check-no-access-control-allow-origin-header-is-present-on-the-requested-resource/65191)._
