'Issue with Manifest V3 URL matches that contain a path

I get the Invalid value for 'web_accessible_resources[0]'. Invalid match pattern. error when trying to load my extension. I've made sure to read the match pattern documentation, and to my understanding, "https://www.example.com/example" should be a valid match pattern.

I've made an example of a manifest that will trigger the error:

{
    "manifest_version": 3,
    "name": "Test",
    "description": "Test",
    "version": "0.0.1",
    "web_accessible_resources": [
        {
            "resources": [ 
                "/js/script.js"
            ],
            "matches":[
                "https://www.example.com/example"
            ],
            "use_dynamic_url": true
        }
    ]
}

Does anyone know why it wouldn't work, is it a bug in Chrome?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source