# Generic 403 when instantiating Auth0Lock in React

**URL:** <https://community.auth0.com/t/generic-403-when-instantiating-auth0lock-in-react/12630>\
**Category:** Get Help\
**Tags:** auth0, lock\
**Created:** [June 27, 2018, 7:23pm UTC](https://community.auth0.com/t/generic-403-when-instantiating-auth0lock-in-react/12630 "2018-06-27T19:23:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sVaterlaus](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sVaterlaus](https://community.auth0.com/u/sVaterlaus)\
**Post date:** [June 27, 2018, 7:23pm UTC](https://community.auth0.com/t/generic-403-when-instantiating-auth0lock-in-react/12630/1 "2018-06-27T19:23:00Z")

</div>

This is an example of where I’m importing and attempting to instantiate Auth0Lock (v11):

```auto
import React, { Component } from 'react'
import Auth0Lock from 'auth0-lock'

class App extends Component {
  constructor() {
    super()

    this.lock = new Auth0Lock('CLIENT_ID', 'DOMAIN.auth0.com')
    this.state = {}
  }
}

```

Every time I start my app I get a generic 403 response from Auth0. I’ve double-checked my credentials, added “[https://localhost:3000](https://localhost:3000)” to my allowed origins settings, triple-checked the API docs, and googled around, but really don’t know where to go from here.

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Carlos\_Mostek](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/carlos_mostek/32/8140_2.png) [@Carlos\_Mostek](https://community.auth0.com/u/Carlos_Mostek)\
**Post date:** [June 27, 2018, 9:00pm UTC](https://community.auth0.com/t/generic-403-when-instantiating-auth0lock-in-react/12630/2 "2018-06-27T21:00:14Z")

</div>

It would be helpful to get the console error, and/or any network response from developer console to help diagnose this particular error.

That said, I would highly recommend checking out the [React Quickstart from Auth0](https://auth0.com/docs/quickstart/spa/react/01-login). It will use the auth0.js library instead of lock, and will use lock on the hosted login page. There are many advantages to using universal login (redirecting to your Auth0 tenant) to collect credentials. One of the most important being that you will have issues with certain browsers that have disabled third-party cookies if you are not using a custom domain.

---

<div class="post-metadata">

**Author:** ![sVaterlaus](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sVaterlaus](https://community.auth0.com/u/sVaterlaus)\
**Post date:** [June 27, 2018, 9:04pm UTC](https://community.auth0.com/t/generic-403-when-instantiating-auth0lock-in-react/12630/3 "2018-06-27T21:04:48Z")

</div>

Right, I may go with that. I just figured out that it was actually my callback URL. My bad, but thanks for the advice!

---

<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:** [December 17, 2018, 10:57am UTC](https://community.auth0.com/t/generic-403-when-instantiating-auth0lock-in-react/12630/4 "2018-12-17T10:57:20Z")

</div>


