# Self-Service Registration

**URL:** <https://devforum.okta.com/t/self-service-registration/14152>\
**Category:** Questions\
**Created:** [May 7, 2021, 7:40pm UTC](https://devforum.okta.com/t/self-service-registration/14152 "2021-05-07T19:40:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murad](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Murad](https://devforum.okta.com/u/Murad)\
**Post date:** [May 7, 2021, 7:40pm UTC](https://devforum.okta.com/t/self-service-registration/14152/1 "2021-05-07T19:40:42Z")

</div>

How to fix ‘[http://localhost:4200](http://localhost:4200)’ is not a valid redirect URI’ under default redirect ?

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [May 7, 2021, 7:45pm UTC](https://devforum.okta.com/t/self-service-registration/14152/2 "2021-05-07T19:45:12Z")

</div>

Please give us more information so we know what you’re trying to do. I’m guessing you’re trying to create an Angular app that works with Okta? You can do this in a couple of minutes if you use the [Okta CLI](https://cli.okta.com) and run `okta start angular`. Here’s a blog post / video that demonstrates how it works.

> **[Use the Okta CLI to Quickly Build Secure Angular Apps](https://developer.okta.com/blog/2020/12/03/angular-okta)**
>
> This 2-minute video shows you how to use the Okta CLI to make secure Angular apps possible in minutes.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [May 7, 2021, 7:57pm UTC](https://devforum.okta.com/t/self-service-registration/14152/3 "2021-05-07T19:57:17Z")

</div>

Can you try adding `http://localhost:4200` to your Trusted Domains for Redirects (see steps for enabling CORS and Redirects for your domain [here](https://developer.okta.com/docs/guides/enable-cors/granting-cors/)) and re-test?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 7, 2024, 12:36am UTC](https://devforum.okta.com/t/self-service-registration/14152/4 "2024-02-07T00:36:51Z")

</div>


