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:
{
"web_accessible_resources": [
{
"resources": ["a.png"],
"matches": ["*://*/*"]
}
],
...
}
Site specific:
{
"web_accessible_resources": [
{
"resources": ["a.png"],
"matches": ["https://example.com/*"]
}
],
...
}
Extension specific:
{
"web_accessible_resources": [
{
"resources": ["a.png"],
"extension_ids": ["abcdefghijlkmnopabcdefghijlkmnop"]
}
],
...
}
Extension and site specific:
{
"web_accessible_resources": [
{
"resources": ["a.png"],
"matches": ["https://example.com/*"],
"extension_ids": ["abcdefghijlkmnopabcdefghijlkmnop"]
}
],
...
}
Links
Launched
m89