0

We developed a Chrome extension and it is working fine for websites with out https protocol. But, it is not loading on sites running with https protocol.

Are there any work around to fix this issue?

SmartTechie
  • 123
  • 1
  • 10
  • 2
    Could you provide more information? What's in your manifest (especially permissions/content script match patterns)? How it doesn't load? – 方 觉 Aug 12 '13 at 09:32
  • Here are the chrome manifest information. "permissions": [ "cookies", "tabs", "http://*/*", "https://*/*", "contextMenus", "webRequest" ], "content_scripts": [ { "matches": ["*://*/*"], "css": ["css/ext/jquery.fancybox-1.3.4.css", "css/ext/jquery.jscrollpane.css","css/ext/jquery.alerts.css" ], "js": ["js/jquery-1.8.2.min.js", "js/ext/cycle.js", "js/ext/jquery.alerts.js", "js/ext/jquery.carouFredSel-6.1.0-packed.js", "js/ext/jquery.fancybox-1.3.4.js", "js/ext/jquery.jscrollpane.js"], "run_at": "document_end" } – SmartTechie Aug 13 '13 at 11:07
  • The manifest looks fine. How it doesn't load and what does your extension do? – 方 觉 Aug 13 '13 at 11:15
  • We are injecting the CSS as per the approach mentioned in http://stackoverflow.com/questions/7619095/how-to-inject-css-into-webpage-through-chrome-extension (Look at the last answer). With this approach, we are unable to inject CSS into HTTPS sites? – SmartTechie Aug 13 '13 at 17:20
  • Edit your question with new information instead of putting it in comments. – Xan Nov 08 '14 at 11:39

1 Answers1

0

In your manifest file, the matches in content_scripts should be like this:

"content_scripts": [
    {
        "matches": [
            "http://*/",
            "https://*/"
        ],
        ...
    },
    ...
]
Pokechu22
  • 4,984
  • 9
  • 37
  • 62