copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2020-06-24 |
Cloudant database, CORS, cross-origin resource sharing, host header |
cis |
{{site.data.keyword.attribute-definition-list}}
{: #access-cloudant-through-cis}
Follow these steps to access your Cloudant database through {{site.data.keyword.cis_full}} ({{site.data.keyword.cis_short_notm}}). {: shortdesc}
{: #access-cloudant-through-cis-begin}
These instructions assume that you already added a domain to {{site.data.keyword.cis_short_notm}} as outlined in the Getting started page.
{: #access-cloudant-through-cis-step1}
- Navigate to your Cloudant database and open the Account > CORS page.
- Add your CIS domain to the origin domains input field. For example,
https://cloudant.test.foo.com
.
{: #access-cloudant-through-cis-step2}
- Navigate to the CIS dashboard and create a load balancer or DNS record that points to your Cloudant database hostname. For example,
https://cloudant.test.foo.com
->111-222-333-444-555-test.cloudant.com
. - Enable
proxy
for the DNS record or load balancer.
{: #access-cloudant-through-cis-step3}
- In the CIS dashboard, navigate to Performance > Page rules.
- Create a page rule for the URL that you want, for example,
https://cloudant.test.foo.com/*
. - Select the Rule Behavior setting
Host Header Override
. - Set as the Cloudant database hostname, for example,
111-222-333-444-555-test.cloudant.com
.
To learn more about Cloudant, see the Cloudant documentation.