Closed r0bbie closed 11 months ago
Hey there! Thanks for the praise.
It would definitely be easy to add this additional option, sure! Are you already self-hosting Omnivore, or is this a "future-proofing" suggestion?
@r0bbie In version 1.3.0 I now implemented an option to set the API URL in the extension settings. I haven’t tested it with a custom instance yet though (because I don’t have one), and I could imagine that the extension still needs some additional permissions to work with it. It’d be nice if you could test it once version 1.3.0 is released (that should happen today or tomorrow).
Just FYI, if you use Chrome (or any Chromium-based browser) and set a custom API URL, an error will be reported when requesting this URL because it does not meet the CORS policy (as shown in the figure):
One solution is to modify the host_permissions
in the manifest.chrome.json
file and add your custom API URL to this field. However, you can't directly install the extension in the Chrome Web Store. You must fork the repository and build your own extension locally. Just run TARGET=chrome npm run build
command to build the extension, it's very easy.
@xiaogaozi Yes, you’re right that the extension permissions don’t allow for custom domains at the moment. I’ve looked into this back then and also couldn’t find any solution to make this work without rebuilding the extension yourself. Perhaps it would be more honest to remove the custom API url setting, to not confuse users. 🤔
For me personally, I really need the ability to customize API URL. "Omnivore List Popup" is the only Chrome extension I can currently find that supports this feature.
Firstly, great extension! Simple, nice UX that just works (and is much better than the official Firefox extension! which honestly this should just become..)
Would it be possible to add a setting to allow this to be used with a self-hosted Omnivore install (i.e. an additional setting in extension prefs to override default Omnivore instance with a self-hosted one, and provide accompanying API key for self-hosted install)?
While Omnivore doesn't seem quite there yet in terms of effective self-hosting, seems like it's getting there, and would be a shame not to be able to keep using this extension!