Skip to content

Commit

Permalink
docs(chrome-extension): Update latest manifest docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski committed Oct 3, 2024
1 parent ed084c4 commit 5d76170
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/chrome-extension/docs/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ When syncing with a host application, you must enable the following permissions:
```

More info on the "cookies" permission: [Google Developer Cookies Reference](https://developer.chrome.com/docs/extensions/reference/cookies/).

More info on the "storage" permission: [Google Developer Storage Reference](https://developer.chrome.com/docs/extensions/reference/storage/).

### Host Permissions
Expand All @@ -37,11 +38,16 @@ You must enable the following host permissions in your `manifest.json` file. Thi
{
"host_permissions": [
"http://localhost/*"
"https://<YOUR_CLERK_DEVELOPMENT_FRONTEND_API_GOES_HERE>/*", // e.g. "https://XXXXXXX.clerk.accounts.dev/*"
"https://<YOUR_APP_DOMAIN>/*", // e.g. "https://XXXXXX.com/*" (Required when in production)
"https://<YOUR_CLERK_PRODUCTION_FRONTEND_API_GOES_HERE>/*" // e.g. "https://clerk.XXXXXX.com/*" (Required when in production)
"https://<YOUR_PRODUCTION_APP_DOMAIN>/*",
"https://YOUR_CLERK_DEVELOPMENT_FRONTEND_API.clerk.accounts.dev/*",
"https://<YOUR_CLERK_PRODUCTION_FRONTEND_API>/*"
]
}
```

Your Frontend API URL can be found in [Clerk Dashboard](https://dashboard.clerk.com/last-active?path=api-keys) under the **Show API URLs** option.
**Notes:**

- Please make sure to include `/*` at the end of each `host_permission`. Feel free to later scope this down, if your usage sees fit.
- The `YOUR_PRODUCTION_APP_DOMAIN` and `YOUR_CLERK_PRODUCTION_FRONTEND_API` are only required when you're ready to go to production.

Your Frontend API URLs can be found in [Clerk Dashboard](https://dashboard.clerk.com/last-active?path=api-keys) under the **Show API URLs** option.

0 comments on commit 5d76170

Please sign in to comment.