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.
It would be very helpful if the requestUrl API provided an option to disable TLS certificate validation (for example, for development or internal/self-hosted services with self-signed certificates).
I understand the security concerns, but having an explicit opt-in flag (like ignoreTls: true ) would make development and testing much easier in some scenarios.
Of course, it could be disabled by default and show a warning if used.