# CORS Policy Issue with Auth0 Integration on WordPress Site

**URL:** <https://community.auth0.com/t/cors-policy-issue-with-auth0-integration-on-wordpress-site/198470>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 30, 2026, 5:52am UTC](https://community.auth0.com/t/cors-policy-issue-with-auth0-integration-on-wordpress-site/198470 "2026-03-30T05:52:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![biswa.das](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/biswa.das/32/72075_2.png) [@biswa.das](https://community.auth0.com/u/biswa.das)\
**Post date:** [March 30, 2026, 5:52am UTC](https://community.auth0.com/t/cors-policy-issue-with-auth0-integration-on-wordpress-site/198470/1 "2026-03-30T05:52:42Z")

</div>

Hello Auth0 Support Team,

We are currently using the Auth0 WordPress plugin on our site ([exchange.1e.com](http://exchange.1e.com)) to allow a limited set of customers to log in using their Azure AD credentials. However, we are encountering a CORS policy error:  
Access to XMLHttpRequest at ‘ttps://oneeonline.auth0.com/usernamepassword/challenge’ from origin ‘ttps://exchange.1e.com’ has been blocked by CORS policy.

In the Auth0 Dashboard, we have already configured both Allowed Web Origins and Allowed Origins (CORS) to include: [https://exchange.1e.com](https://exchange.1e.com)

Within the WordPress Auth0 plugin settings:  
Features tab:  
Universal Login Page → Enabled  
Override WordPress Avatars → Enabled  
Advanced tab:  
Force HTTPS Callback → Enabled  
Embedded tab: No options enabled

Additionally, we have successfully configured a custom domain ([login.exchange.1e.com](http://login.exchange.1e.com)) following the official documentation, and completed all related setup in both the Auth0 dashboard and our Exchange admin portal.

Despite this, the CORS issue persists. Initially, the error referenced:oneeonline.auth0.com. Whereas, after configuring the custom domain, it now references:login.exchange.1e.com. This suggests the issue remains unresolved despite the domain change.

Could you please help us identify what might be missing or misconfigured?

Thank you for your support.

Best regards,  
Biswa

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 31, 2026, 3:28pm UTC](https://community.auth0.com/t/cors-policy-issue-with-auth0-integration-on-wordpress-site/198470/3 "2026-03-31T15:28:21Z")

</div>

Hi @biswa.das

Welcome to the Auth0 Community!

Are you using an embedded Lock widget to perform the authentication using Azure AD by any chance? If so, since the embedded widget tried to make a call to the Auth0 domain, the browser blocks it due to Cross-Origin Authentication.

I would suggest to try the one of the following options:

- If you are not redirecting the user but the login trigger is a custom page or embedded widget, enforce true universal login by having a simple link which is used to initialize the login to point to your WordPress login route (should be `https://exchange.1e.com/wp-login.php`) which will trigger the full-page redirect to your custom domain.
- Enable Cross-Origin Authentication for your application. You can do this by going to Applications → Application → Your\_App → Settings → Cross-Origin Authentication → Enable the toggle → Add the Allowed Origins.

Let me if this does the trick for you!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [April 15, 2026, 4:47pm UTC](https://community.auth0.com/t/cors-policy-issue-with-auth0-integration-on-wordpress-site/198470/4 "2026-04-15T16:47:53Z")

</div>

Hi again!

Since you have not replied back regarding the matter, I will be marking my previous reply as the solution.

Feel free to jump back with any additional information or post again referencing this topic!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 29, 2026, 4:48pm UTC](https://community.auth0.com/t/cors-policy-issue-with-auth0-integration-on-wordpress-site/198470/5 "2026-04-29T16:48:01Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
