# Discourse Plugin Access-Control-Allow-Origin

**URL:** <https://community.auth0.com/t/discourse-plugin-access-control-allow-origin/10447>\
**Category:** Get Help\
**Tags:** discourse\
**Created:** [March 28, 2018, 12:15pm UTC](https://community.auth0.com/t/discourse-plugin-access-control-allow-origin/10447 "2018-03-28T12:15:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphael.haase](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@raphael.haase](https://community.auth0.com/u/raphael.haase)\
**Post date:** [March 28, 2018, 12:15pm UTC](https://community.auth0.com/t/discourse-plugin-access-control-allow-origin/10447/1 "2018-03-28T12:15:07Z")

</div>

Hi,

I am using the Discourse Auth0 plugin from [GitHub - auth0/discourse-plugin: Discourse plugin to authenticate with auth0. · GitHub](https://github.com/auth0/discourse-plugin) with Discourse 2.0beta3.  
The login window shows up instead of Discourse’s own login, but I can never login because of a cross site error.  
In the Chrome console it says:  
(I had to replace the URLs since as a new users I can’t post links.)

> Failed to load URL: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘URL2’ is therefore not allowed access.

I already added URL2 to Allowed Web Origins and Allowed Origins (CORS) in the client settings for which I entered the data into the auth0 plugin.

I tested it also with Internet Explorer and it always says wrong email/password, but shows a similar error on the console:

> SEC7120: Origin URL2 not found in Access-Control-Allow-Origin header.

Do I need to enter the original URLs anywhere else in the Auth0 dashboard or the plugin?

---

<div class="post-metadata">

**Author:** ![jerdog](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerdog/32/11231_2.png) [@jerdog](https://community.auth0.com/u/jerdog)\
**Post date:** [March 28, 2018, 2:59pm UTC](https://community.auth0.com/t/discourse-plugin-access-control-allow-origin/10447/2 "2018-03-28T14:59:38Z")

</div>

This plugin is on its way to being deprecated for the time being. Instead we recommend that you use the Discourse OAuth2 Basic plugin

> **[GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with...](https://github.com/discourse/discourse-oauth2-basic)**
>
> A basic OAuth2 plugin for use with Discourse. Contribute to discourse/discourse-oauth2-basic development by creating an account on GitHub.

We also talked a bit about it here:

> **[Silent login/signup via Auth0](https://meta.discourse.org/t/silent-login-signup-via-auth0/83163/3?u=jerdog)**
>
> Hey @shahidmir 👋 Just wanted to jump in with a quick comment: your best bet is to set up a RWA in Auth0 and use the official Discourse OAuth 2 Basic Plugin. We, at Auth0, have a similar setup where our customers can login to the Auth0 Dashboard,...

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 11:14am UTC](https://community.auth0.com/t/discourse-plugin-access-control-allow-origin/10447/3 "2019-07-25T11:14:53Z")

</div>


