What does "http://*/*", "https://*/*" and "<all_urls>" mean in the context of Chrome extension's permissions
I am trying to understand the working of Google chrome extensions. I was studying the manifest.json
file where I came across the permissions "http://*/*"
, "https://*/*"
and "<all_urls>"
Can anybody explain what do these permissions mean?
Solution 1:
-
"<all_urls>"
: matches any URL that starts with a permitted scheme (http:
,https:
,file:
, orftp:
). -
"http://*/*"
: Matches any URL that uses thehttp:
scheme. -
"https://*/*"
: Matches any URL that uses thehttps:
scheme. -
"*://*/*"
: Matches any URL that uses thehttps:
orhttp:
scheme.
These permissions are required if your Chrome extension wants to interact with the code running on pages.
Match patterns documentation