obsidian-livesync
obsidian-livesync copied to clipboard
[Feature request] Can we customize the HTTP request header?
Abstract
Thanks for the great plugin!
I try to deploy my own CouchDB. But I must have a valid ssl certificate So I turn to ngrok tunnel to convert my local http service to public https service. But I encoutered following page when I open my public page after ngrok tunnel.
- **To remove this page:**
- Set and send an `ngrok-skip-browser-warning` request header with any value.
- Or, set and send a custom/non-standard browser `User-Agent` request header.
- Or, please [[upgrade](https://dashboard.ngrok.com/billing)](https://dashboard.ngrok.com/billing) to any paid ngrok account.
So I want to ask can we set the request header to solve this problem?
Expected behaviour
Customize the request header to skip the above page.
Actually happened
The above page appears
Reproducing procedure
Any ngrok tunnel without customized header could trigger this page.
Thank you for asking me! I am so proud to hear you say that.
Except for the OPTIONS
method, we can send a custom header.
Do you know which methods need that header?
If we can ignore the OPTIONS
header, the following patch will work.
Here is the Patched main.js. Please try this once.
Note that you should set the CouchDB cors
->headers
to accept the header.
@vrtmrz I have the same problem. Patched main.js works but I can't use it on mobile device