0PricingLogin
Browser Extensions Development (Chrome & Edge) · Lesson

Permissions and Host Matching

Understand how to declare and request necessary permissions, and how host permissions control access to websites.

Why Extensions Need Permissions

Just like apps on your phone, browser extensions often need special 'permissions' to do their job. These permissions define what your extension can and cannot do.

This system is crucial for user security and privacy. It prevents extensions from accessing information or performing actions they don't need, without your explicit consent.

Two Core Permission Types

In Manifest V3, permissions generally fall into two categories:

  • API Permissions: Access to specific browser features (e.g., managing tabs, saving data).
  • Host Permissions: Access to specific websites (e.g., reading content on example.com).

We'll look at how to declare both in your manifest.json file.

All lessons in this course

  1. Understanding Manifest V3 Structure
  2. Background Service Workers
  3. Permissions and Host Matching
  4. Action, Icons & the Toolbar Button
← Back to Browser Extensions Development (Chrome & Edge)