Domain Name Requirements
The custom domain name must be a valid domain name that is owned by you. It must be a subdomain of the domain name your application is hosted on. If you host your application on multiple domains, you can set up one for each domain. For example, if your application is hosted onexample.com
, you can set up a custom domain name for Prelude’s Session API like session.example.com
.
Prelude’s Session API uses cookies to authenticate requests. Modern web browsers block third-party cookies by default. By setting up a custom domain name that is a subdomain of the domain your application is hosted on, you can ensure that the cookies won’t be blocked.
How To Set Up a Custom Domain Name
1
Create a custom domain name
Perform a
POST /v2/session/apps/{appID}/domains
to the Session Management API. Ensure that the domain name is a subdomain of the domain your frontend application is hosted on.2
Add the CNAME record to your DNS settings
Retrieve the CNAME record from the
cname_record
field in the response and add it to your DNS settings for your domain name. This step varies depending on your DNS provider.3
Verify the custom domain name
Perform a
POST /v2/session/apps/{appID}/domains/{domainID}/verify
to the Session Management API. Prelude will automatically try to verify the CNAME record, and issue an SSL certificate for your domain name.