Gå til hovedindhold
Account Setup

Domains

Whitelist the domains your integration will send requests from.

Domains

Production API keys check that requests come from a domain you have approved. This prevents your key from being used on domains you do not control.

Manage your domains at Account → Domains.

Adding a domain

  1. Go to Account → Domains
  2. Enter your domain — see the format examples below
  3. Click Add domain

The domain is active immediately.

Domain format

Enter the bare hostname only — no protocol, no path, no trailing slash.

✅ Correct❌ WrongWhy it's wrong
myshop.dkhttps://myshop.dkRemove the https:// prefix
myshop.dkhttp://myshop.dkRemove the http:// prefix
myshop.dkmyshop.dk/Remove the trailing slash
myshop.dkwww.myshop.dkOnly if you use www. — add both if needed
www.myshop.dkmyshop.dkwww. and non-www. are treated as different domains
staging.myshop.dkmyshop.dkSubdomains are not automatically included
myshop.dkmyshop.dk/checkoutNo paths — the whole domain is whitelisted

Common setups

Standard webshop — add both with and without www if you use both:

myshop.dk
www.myshop.dk

With a staging environment:

myshop.dk
www.myshop.dk
staging.myshop.dk

Shopify store on a custom domain:

myshop.dk
www.myshop.dk

WooCommerce on a subdirectory (e.g. myshop.dk/shop):

myshop.dk

The subdirectory /shop does not need to be listed — the whole domain is whitelisted automatically.

What counts as a match

The domain is checked against the Origin header of incoming requests. This header is automatically set by browsers and most HTTP clients.

You should add every domain your integration runs on, including:

  • Your live store (myshop.dk)
  • A staging environment (staging.myshop.dk)
  • Any subdomain that initiates verifications

All keys

Domain whitelisting is enforced for both test (pk_test_) and production (pk_live_) keys. Add your domain before testing, including any staging or local development environments you use.

On this page