Whitelisting of URL

Whitelisting of URLs

By default, Widgets are allowed access only to the AppCreator servers and subsequently all other URLs are blocked. To use any client library within widget the whitelisting of URLs should be done. Whitelisting is the process by which you can create a list of URLs that the widget can access apart from the default AppCreator URLs. 

To whitelist URLs:

  1. Install the Command Line Interface(CLI). Learn more
  2. Open your project folder. Find the plugin-manifest.json file in the folder.
  3. Add the Domains to be whitelisted in the "plugin-manifest.json" file.
  4. Pack the ZIP using the CLI client. Learn more
  5. Upload this ZIP to AppCreator.

Syntax

{
  "service": "CREATOR",
  "cspDomains": {
    "connect-src": [
      "domain1",
      "domain2",
      "domain3"
    ]
 }
}

Example

{
  "service": "CREATOR",
  "cspDomains": {
    "connect-src": [
      "wss://*.zohopublic.com",
      "https://*.zoho.com",
      "https://*.zohopublic.com"
    ]
 }
}

Related Topics

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: appcreator-support@manageengine.com