In my plugin I need to query a REST API, which runs on a CORS sensitive server with self-signed certificate. Re quest need to be authenticated.
- With general typescript means I collide with CORS.
- Implementing a local proxy in the plugin crashes with a strange require_stream is not a function error for express.
- For the probably best and indented way with Obsidian’s requestUrl method I do not find a way to provide the custom cert. Is there an undocumented arg, a way to apply a custom httpsAgent or any other hack?
Any help, especially with option 3 is very much appreciated.
thx