# Passwordless with code option fails with CORS

**URL:** <https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635>\
**Category:** Get Help\
**Created:** [June 27, 2018, 11:35pm UTC](https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635 "2018-06-27T23:35:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle.reed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kyle.reed/32/8196_2.png) [@kyle.reed](https://community.auth0.com/u/kyle.reed)\
**Post date:** [June 27, 2018, 11:35pm UTC](https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635/1 "2018-06-27T23:35:49Z")

</div>

I started with the quickstart with the link option and converted it to use a code instead.

The app is a single page app using the latest auth0-js (version 9.6.1).

Oddly the call to passwordless/start succeeds and I can see the correct access control allow origin header there:

 ![image](https://global.discourse-cdn.com/auth0/original/2X/4/426ed0b1adb4db669dab114b3415a4034208d3ab.png)

However, the call to passwordless/verify does not have the access control allow origin header:

 ![image](https://global.discourse-cdn.com/auth0/original/2X/0/05e4505bdec6016d25dc3a3700f3dd1899d488f4.png)

I’d appreciate it if someone can confirm either that I’m doing something wrong or that this is broken on auth0’s end.

Thanks.

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [June 29, 2018, 5:57pm UTC](https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635/3 "2018-06-29T17:57:01Z")

</div>

👋 @kyle.reed curious which quickstart are you referring to?

Apologies I hadn’t finished my message - I shall continue here.

Can you ensure you have included your application’s domain URLs in the `Allowed Web Origins` and `Allowed Origins` (CORS) fields? Are you using `passwordlessVerify()` with hosted pages? If so, we should change that method call to use [passwordlessLogin()](https://auth0.com/docs/libraries/auth0js/v9#verify-passwordless) instead.

---

<div class="post-metadata">

**Author:** ![kyle.reed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kyle.reed/32/8196_2.png) [@kyle.reed](https://community.auth0.com/u/kyle.reed)\
**Post date:** [June 29, 2018, 9:47pm UTC](https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635/4 "2018-06-29T21:47:40Z")

</div>

Re: Quickstart: I stated with the Vue.js passwordless quickstart.

I’m not using hosted pages. The auth-js documentation doesn’t say that this is required.

I’m also not seeing passwordlesslogin here: [JSDoc: Global](https://auth0.github.io/auth0.js/global.html#passwordlessStart)

Re: Allowed Web Origins, yes absolutely. I don’t think the passwordless/start call would have worked without those settings.

Anyway, I’ve already moved on to another solution now. I couldn’t wait.

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [September 6, 2018, 4:10pm UTC](https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635/5 "2018-09-06T16:10:04Z")

</div>

Sorry to hear that Kyle. I look to work with our team to see what we can do about the issue and what we can improve in our documentation.

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [September 6, 2018, 4:10pm UTC](https://community.auth0.com/t/passwordless-with-code-option-fails-with-cors/12635/6 "2018-09-06T16:10:08Z")

</div>


