My extension's content script:
let s = document.createElement("script");
s.setAttribute("async", "");
s.setAttribute("type", "module");
s.setAttribute("src", "https://gamergirlandco.github.io/some_script.js");
s.setAttribute("crossorigin", "anonymous")
document.body.appendChild(s)
However, I get this error:
WebExtension content scripts may only load modules with moz-extension URLs and not: “https://gamergirlandco.github.io/some_script.js”.
I've tried adding *://gamergirlandco.github.io/*
to the permissions
array in manifest.json
, but that didn't work.
Help?