App Key and Site Allow-List by Policy
Audience: IT and security teams deploying or reviewing the Pyze extension, version 3.0.0 and later. Earlier per-customer builds have both values compiled in and do not use this page.
The extension is one build for every customer. It reports nothing until your browser policy sets both of these values:
| Policy value | What it controls |
|---|---|
AppKey |
Which Pyze app receives the events |
AllowedSites |
Which sites the extension collects from |
An extension that is installed but not configured places no Pyze script on any page and sends no data. To change either value later, edit the policy and let it refresh: no new package, no store review, and no action from Pyze.
Step 1: Set the App Key
Pyze gives you the app key, a 22-character value. Set it as the string AppKey in the extension’s own policy, at the location in Step 3.
The key identifies your tenant and can only submit events; it cannot read, query, or export data. Users can see it in chrome://policy, so do not treat it as a secret.
Step 2: Set the Site Allow-List
Set AllowedSites in the same policy as a list of site patterns, one per approved site:
["https://*.your-app.example.com/*", "https://portal.example.com/*"]
- A pattern has a scheme, a host, and a path.
https://*.example.com/*matches every page onexample.comand its subdomains. - Collecting from every site is an explicit choice. Use the single entry
*://*/*. There is no other way to turn it on. - An empty or missing list means no sites.
Step 3: Deploy the Values
Both values go in the extension’s own policy, which is separate for each browser:
| Platform | Policy location |
|---|---|
| Windows, Chrome | HKLM\SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\<extension-id>\policy |
| Windows, Edge | HKLM\SOFTWARE\Policies\Microsoft\Edge\3rdparty\extensions\<extension-id>\policy |
| macOS, Chrome | Preference domain com.google.Chrome.extensions.<extension-id> |
| macOS, Edge | Preference domain com.microsoft.Edge.extensions.<extension-id> |
| Google Admin console | Policy for extensions on the Pyze extension’s entry, under Devices › Chrome › Apps & extensions › Users & browsers |
| Platform | AppKey |
AllowedSites |
|---|---|---|
| Windows | String value AppKey |
Subkey AllowedSites with one string value per site, named 1, 2, 3, … |
| macOS | String AppKey |
Array AllowedSites of strings |
| Google Admin console | {"AppKey": {"Value": "<app-key>"}, "AllowedSites": {"Value": ["https://*.your-app.example.com/*"]}} |
In the same JSON |
Deliver the Windows values with Group Policy or Intune and the macOS values in an MDM profile. Each IT deployment guide has the commands and profile snippets for its platform.
Step 4: Verify on a Client
- Open
chrome://policy(Edge:edge://policy) and click Reload policies.AppKeyandAllowedSitesshould both be listed under the Pyze extension, without error. - Open an approved site and a site that is not approved. In DevTools › Sources › Content scripts, the Pyze scripts are listed on the approved site only.
- Use the approved site for a few minutes and confirm the events appear in your Pyze app.
How the Allow-List Is Enforced
The extension’s manifest declares access to all sites so that the approved list is your policy and not a list compiled by Pyze. The extension then limits itself to your list in two ways:
- Scripts are placed only on listed sites. The manifest contains no page scripts. The extension registers its scripts for the
AllowedSitespatterns, and only when both policy values are valid. - Data leaves only through the extension’s service worker. Nothing is sent directly from the page. Before each event leaves the browser, the service worker confirms that the app key is valid and the page is on the list. Anything else is dropped.
Nothing about a site that is not on the list is sent, including its address and page title.
| Policy state | On the user’s pages |
|---|---|
| Extension installed, no policy | No Pyze script on any page. Nothing is sent. |
AppKey set, no AllowedSites |
The same. Nothing is sent. |
| Both set | Pyze scripts load on the listed sites only, and events go to your Pyze app. |
AllowedSites changed |
The extension follows the new list, with no reinstall. |
| Either value removed | The scripts are removed and nothing is sent. |
Users cannot change either value: the policy locations need administrator rights. To audit the scope, read chrome://policy or edge://policy on any managed device, or use your policy tool’s own reporting.
Optional: A Second Limit Enforced by the Browser
AllowedSites is enforced by the extension. If your security team also wants a limit that the browser itself enforces, independent of Pyze’s code, add the same sites to the ExtensionSettings browser policy:
{
"<extension-id>": {
"runtime_blocked_hosts": ["*://*"],
"runtime_allowed_hosts": ["*://*.your-app.example.com"]
}
}
These patterns match scheme and host only, with no path, and each list takes at most 100 entries. ExtensionSettings is one value for all extensions, so add the two lists to the existing Pyze entry if there is one (for example, the override_update_url entry of a non-store deployment). The Pyze collector does not need an entry. A site must be on both lists for the extension to collect from it.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| No events appear in your Pyze app | AppKey or AllowedSites is missing or not valid, so the extension reports nothing. The extension’s service worker console names the value. |
In chrome://policy, confirm both values are listed under the Pyze extension ID without error. The policy location contains the extension ID, so check that it matches the installed extension. |
| The extension does not run on a site | No AllowedSites pattern matches the site, or an ExtensionSettings blocked-hosts list excludes it. |
Add the pattern, let the policy refresh, and reload the page. |
| The extension runs on sites you did not approve | AllowedSites contains a broader pattern than intended, such as *://*/*. |
Narrow the list and let the policy refresh. |