Skip to content

Files

Latest commit

 

History

History
53 lines (36 loc) · 1.61 KB

manifest.md

File metadata and controls

53 lines (36 loc) · 1.61 KB

Clerk Browser Extension Manifest

Base Configuration

All Browser Extensions require, at minimum, the following configuration:

Permissions

{
  "permissions": ["storage"]
}

More info on the "storage" permission: Google Developer Storage Reference.

Sync Host Configuration

When syncing with a host application, you must enable the following permissions:

Permissions

{
  "permissions": ["cookies", "storage"]
}

More info on the "cookies" permission: Google Developer Cookies Reference.

More info on the "storage" permission: Google Developer Storage Reference.

Host Permissions

You must enable the following host permissions in your manifest.json file. This will allow the extension to communicate with the host application.

{
  "host_permissions": [
    "http://localhost/*"
    "https://<YOUR_PRODUCTION_APP_DOMAIN>/*",
    "https://YOUR_CLERK_DEVELOPMENT_FRONTEND_API.clerk.accounts.dev/*",
    "https://<YOUR_CLERK_PRODUCTION_FRONTEND_API>/*"
  ]
}

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 under the Show API URLs option.