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
- Understanding Manifest V3 Structure
- Background Service Workers
- Permissions and Host Matching
- Action, Icons & the Toolbar Button