![Solomon Kinard](https://web.dev/images/authors/solomonkinard.jpg) Solomon Kinard [X](https://twitter.com/solomonkinard) [GitHub](https://github.com/solomonkinard) [Homepage](https://kinard.com) ![Simeon Vincent](https://web.dev/images/authors/dotproto.jpg) Simeon Vincent [X](https://twitter.com/dotproto) [GitHub](https://github.com/dotproto)

<br />

New and improved Web Accessible Resources for Manifest V3!

New and improved Web Accessible Resources for Manifest V3!

## Summary

Web Accessible Resources for Manifest V3 is here! Now `manifest.json` supports permission
definitions. Developers can restrict resources based on the requesting site origin or extension id.

## Examples

Wildcard site:

```json
{
  "web_accessible_resources": [
    {
      "resources": ["a.png"],
      "matches": ["*://*/*"]
    }
  ],
  ...
}
```

Site specific:

```json
{
  "web_accessible_resources": [
    {
      "resources": ["a.png"],
      "matches": ["https://example.com/*"]
    }
  ],
  ...
}
```

Extension specific:

```json
{
  "web_accessible_resources": [
    {
      "resources": ["a.png"],
      "extension_ids": ["abcdefghijlkmnopabcdefghijlkmnop"]
    }
  ],
  ...
}
```

Extension and site specific:

```json
{
  "web_accessible_resources": [
    {
      "resources": ["a.png"],
      "matches": ["https://example.com/*"],
      "extension_ids": ["abcdefghijlkmnopabcdefghijlkmnop"]
    }
  ],
  ...
}
```

## Links

- [Demo](https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api-samples/web-accessible-resources)
- [Docs](https://developer.chrome.com/docs/extensions/mv3/manifest/web_accessible_resources)

## Launched

m89