CleverBooster Docs

  • Home
  • CB Form Builder Pro
    • Can't not submit your form
    • Can I set multiple CB forms on a Shopify template and restrict hiding from a product only?
    • Capturing Form Event Data with JavaScript Callback
    • Form Builder can work with Shopify Headless
    • Install CB Form Builder Pro on Shopify Store
    • Setup SMTP
    • Auto-responding Emails
    • Condition Logic
    • Setup reCAPTCHA
  • CBMaps Store Locator
    • How to add a Google Maps API key to your account
    • How to create a Mapbox token and set restriction domains for your store locator

How to Create a Mapbox Token and Set Restriction Domains for your store locator

Mapbox tokens are a fundamental requirement for accessing and utilizing Mapbox APIs and SDKs. To ensure secure usage, you can create a Mapbox token and set restriction domains that limit where the token can be employed. Here's a streamlined guide to help you through the process:

Creating Your Mapbox Token


Creating a Mapbox Token

  1. Visit the Mapbox Account page and log in.
  2. Navigate to the Access Tokens tab.
  3. Click the "Create a token" button.
  4. Provide a name and description for your token.
  5. Select the necessary scopes for your token's functions.
  6. Finally, click "Create token."

Setting Restriction Domains

Once your token is created, you can establish restriction domains to bolster security and prevent unauthorized token use. Follow these steps:

  1. Log in to your Mapbox Account and access the Access Tokens tab.
  2. Locate the token you wish to configure restriction domains for and click its name.
  3. Under the "Allowed URLs" section, click "Add allowed URL."
  4. Enter the URL where you want the token to be valid.
  5. Click "Add URL."


You have the option to add multiple allowed URLs to your token. If you decide not to specify any allowed URLs, the token will function from any URL.

NOTE: you should include these URLs https://admin.shopify.com/ https://cleverbooster.com/ to the mapbox token


Using Your Mapbox Token

With your Mapbox token created and restriction domains in place, you can now put the token on CBmaps => Settings => Map Keys => Mapbox key


In Conclusion

Creating a Mapbox token and configuring restriction domains is a straightforward process that bolsters the security of your account and data. By following these steps, you can craft a token tailored to your specific needs, ensuring secure and connect CBmaps with your Mapbox account quickly

CleverBooster avatar
Written by John De
Updated almost 2 years