What does "http://*/*", "https://*/*" and "<all_urls>" mean in the context of Chrome extension's permissions

Google ChromeGoogle Chrome-Extension

Google Chrome Problem Overview


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?

Google Chrome Solutions


Solution 1 - Google Chrome

  • "<all_urls>": matches any URL that starts with a permitted scheme (http:, https:, file:, or ftp:).
  • "http://*/*": Matches any URL that uses the http: scheme.
  • "https://*/*": Matches any URL that uses the https: scheme.
  • "*://*/*": Matches any URL that uses the https: or http: scheme.

These permissions are required if your Chrome extension wants to interact with the code running on pages.

Match patterns documentation

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTheRookierLearnerView Question on Stackoverflow
Solution 1 - Google ChromePSLView Answer on Stackoverflow