'Can you access chrome:// pages from an extension?

When you're writing the manifest.json file, you have to specify matches for your content scripts. The http and https work fine, but if I try to include chrome://*/* or any variant of it, I get an error that I'm attempting to use an invalid scheme for my matches.

Is it not allowed?



Solution 1:[1]

The authorized schemes for matches are http, https, file, ftp.
Therefore, chrome is not a valid scheme.

Solution 2:[2]

Yes, it is not allowed. You can't link to them from hrefs on a webpage either.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 wOxxOm
Solution 2 James