I think documentation is a bit weak for that.
The restrictions are the same on any OS.
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/fa54797a-9896-4bbf-b570-ce990c4d4a06n%40chromium.org.
I serve my crx with application/x-chrome-extension . I do not have X-Content-Type-Options: nosniff header. At least curl does not show that header. Here is more details:
under /etc/opt/chrome/policies/managed I added ExtensionInstallForceList with " my extension id; http://localhost:8080/chrome.crx" ,
and under /usr/share/google-chrome/extensions I added myExtensionId.json with content:
"external_update_url" : "http://localhost:8080/chrome.xml"
and in my chrome.xml file I edited codebase as " http://localhost:8080/chrome.crx"
I got these in log:
WARNING:user_type_filter.cc(59)] No user type filter specified for jmalmhkbdafjhfejbimajkjknjdhjnbo. Using default user type filter, please update the app.
VERBOSE1:pending_extension_manager.cc(324)] Extension id jmalmhkbdafjhfejbimajkjknjdhjnbo was entered for update more than once. old location: 7 new location: 2 old version: invalid new version: invalid
VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: http://localhost:8080/chrome.crx?os=linux&arch=x64&os_arch=x86_64&nacl_arch=x86-64&prod=chromecrx&prodchannel=&prodversion=88.0.4324.150&lang=en-US&acceptformat=crx3&x=id%3Djmalmhkbdafjhfejbimajkjknjdhjnbo%26v%3D0.0.0.0%26installsource%3Dnotfromwebstore%26installedby%3Dpolicy%26uc
For the second one(324) I found this https://stackoverflow.com/a/48262365/11038944 and I already got local server url. I am not sure it is related to http/https. But old version: invalid new version: invalid line tricks me. I was trying with "external_crx" and got:
VERBOSE1:pending_extension_manager.cc(324)] Extension id jmalmhkbdafjhfejbimajkjknjdhjnbo was entered for update more than once. old location: 7 new location: 2 old version: invalid new version: 3.4.0
Finally I grep my extension id under ~/.config/google-chrome and apart from showing up in log files, it appears in /Safe Browsing/ChromeExtMalware.store binary file.
I wish there is a clear video tutorial on this. Googling won't help a lot, since barely any people wants to enforce extension in linux.
Edit I solved it. In ExtensionInstallForceList I switched from crx to xml file. Not going to delete this, hope helps someone!