# CORS Error when trying to POST to /continue

**URL:** <https://community.auth0.com/t/cors-error-when-trying-to-post-to-continue/57452>\
**Category:** Get Help\
**Tags:** api, rules, login, auth0\
**Created:** [February 5, 2021, 3:25pm UTC](https://community.auth0.com/t/cors-error-when-trying-to-post-to-continue/57452 "2021-02-05T15:25:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghucs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/raghucs/32/27433_2.png) [@raghucs](https://community.auth0.com/u/raghucs)\
**Post date:** [February 5, 2021, 3:25pm UTC](https://community.auth0.com/t/cors-error-when-trying-to-post-to-continue/57452/1 "2021-02-05T15:25:26Z")

</div>

Hi,

When my user logs in and is a new user I am checking his login count in a specific rule and then redirecting the user to a /onboard page in my application.

This redirect is going well and my onboarding page is shown.

Post gathering the data in the onboarding page I am trying to make a post to https:///continue?state=ORIGINAL\_STATE

This is failing with a CORS error saying that [http://localhost:8080](http://localhost:8080) is not allowed.

Do I need to do anything specific to allow this - I have already made the [http://localhost:8080](http://localhost:8080) addition in both Allowed WebOrigin and Allowed CORS in my tenant on Auth0.

Thanks,  
Raghu

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [February 27, 2021, 12:18pm UTC](https://community.auth0.com/t/cors-error-when-trying-to-post-to-continue/57452/2 "2021-02-27T12:18:04Z")

</div>

Hi @raghucs ,

I think this may be the way you are carrying out the POST request, the `/continue` endpoint is expecting a browser redirect and not an AJAX request (e.g. a XMLHttpRequest), which doesn’t support CORS.

This other community thread and the Github repo linked there may be of some help to you too:

> [@Working progressive profile demo using SPA SDK](https://community.auth0.com/t/working-progressive-profile-demo-using-spa-sdk/35802/2):
>
> Fair enough. I would recommend you check out [rules/redirect-rules/progressive-profiling at master · auth0/rules · GitHub](https://github.com/auth0/rules/tree/master/redirect-rules/progressive-profiling) Explanation there is more concise and clear on how to implement. Only confusing bit is the webtask since you can’t create new ones anymore. However as mentioned in the docs webtask is just one way to host and tbh what that webtask does can simply be just part of your current application. For what it is worth I just recreated the webtask as a simple node webapp with minimal ch…

---

<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:** [March 14, 2021, 12:18pm UTC](https://community.auth0.com/t/cors-error-when-trying-to-post-to-continue/57452/3 "2021-03-14T12:18:43Z")

</div>

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