# Configuring Application to use custom domain (Angular Application)

**URL:** <https://community.auth0.com/t/configuring-application-to-use-custom-domain-angular-application/140169>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [July 31, 2024, 2:42pm UTC](https://community.auth0.com/t/configuring-application-to-use-custom-domain-angular-application/140169 "2024-07-31T14:42:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sranjani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sranjani/32/60859_2.png) [@sranjani](https://community.auth0.com/u/sranjani)\
**Post date:** [July 31, 2024, 2:42pm UTC](https://community.auth0.com/t/configuring-application-to-use-custom-domain-angular-application/140169/1 "2024-07-31T14:42:01Z")

</div>

Hello,

I recently added a custom domain and want to configure my angular application to use this custom domain for the login.

The custom domain page shows that the domain is ready to use. I updated my angular code to use the following:  
provideAuth0({  
domain: ‘[custom-domain.auth0.com](http://custom-domain.auth0.com)’,  
clientId: ‘client-id-from auth0-application-settings’,  
authorizationParams: {  
redirect\_uri: window.location.origin,  
},  
}),  
and I get “Connection for this site is not secure - uses an unsupported protocol” when I click on login on my application.

Also, when I test the domain on the custom domain page on Auth0 I get the following error:  
“Error! Looks like your domain is not configured correctly. Please take into account that the configuration process might take up to 10 minutes to complete due to DNS propagation.”

Am I doing anything wrong? Or did I miss any step?

Could you please help me with this?

Thanks!

Regards,  
Shrividya

---

<div class="post-metadata">

**Author:** ![sranjani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sranjani/32/60859_2.png) [@sranjani](https://community.auth0.com/u/sranjani)\
**Post date:** [August 3, 2024, 2:31am UTC](https://community.auth0.com/t/configuring-application-to-use-custom-domain-angular-application/140169/2 "2024-08-03T02:31:19Z")

</div>

The code is as expected. There was an issue with the domain setup. Re-doing the setup resolved this issue.

---

<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:** [August 17, 2024, 2:31am UTC](https://community.auth0.com/t/configuring-application-to-use-custom-domain-angular-application/140169/3 "2024-08-17T02:31:26Z")

</div>

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