Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can content script run on https page chrome extensions development

i am developing a chrome extension, when i run content script on http page, it is ok. But i am confuse why it can't do on https page. Can content script run on https page. And my permissions id like that. "permissions": [ "http://*/*", "https://*/*", "tabs" ],

like image 747
user1070827 Avatar asked Nov 17 '25 05:11

user1070827


1 Answers

In addition to including https in the permissions section of your manifest, you also need to include it in the matches section of the content_scripts section:

"content_scripts": [
  {
    "matches": ["http://*/*", "https://*/*"],
    "js": ["script.js"]
  }
]
like image 84
Mihai Parparita Avatar answered Nov 20 '25 15:11

Mihai Parparita



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!