To avoid frustrating cookie issues and to enhance your branding, we encourage you to use a custom domain.
By default, you have a Frontegg Domain, which ends with .frontegg.com. By using this Frontegg Domain, however, you may encounter unwanted cookie issues and use a domain that is not consistent with your brand.
Some browsers block third-party cookies by default. Providing a custom domain as your application UI domain will give you the ability to support these browsers.
Instead of seeing .frontegg.com in your domain, you might prefer to have your customers see your custom domain. For instance, when your customers use your application to login, your application might direct them to the following URL:
Rather than see a domain with .frontegg.com in it, you might prefer that your customer see your domain instead.
Read below to learn how to configure a custom domain.
To configure custom domains, your Frontegg portal, go to Environments ➜ [NAME OF ENVIRONMENT] ➜ Env Settings ➜ Domains.
Note that you can configure one custom domain per environment, and up to 2 domains in total. If you need to configure more custom domain, contact us.
To configure a new custom domain, press Configure, and in the popup dialog box, insert the your desired domain name which will generate the CNAME record you need for your DNS configuration.
Use Subdomain as Custom Domain
A common practice is to use a subdomains as the custom domain because if your app is hosted on app.sample.com and you have an existing A Record for that domain, you cannot use app.sample.com as a custom domain on Frontegg. Instead, use a subdomain as the custom domain, like auth.sample.com.
After adding the CNAME to your DNS configuration, click the Verify button. If Frontegg is able to verify the CNAME record, you will see a success message. After a successful setup, you should also see your custom domain listed on the Administration Page's Domain tab with a verified tag.
Custom Domains and Environments
Note that managing custom domains is performed for each environment separately.
Frontegg generates an SSL certificate for your custom domain.
Note that when using a custom domain on Frontegg, That domain should also be passed in the
baseUrl in the
contextOptions of your Frontegg integrations package.
In the setup, you may encounter an error if Frontegg is unable to verify your custom domain. If that happens to you, double check that you entered your CNAME correctly with your DNS provider and try again.
Updated 29 days ago