android icon indicating copy to clipboard operation
android copied to clipboard

Custom HTTP Headers

Open CrazyWolf13 opened this issue 1 month ago • 3 comments

Hi,

I hope this is the right kind of place to ask these questions.

Is it possible to add custom http headers to an owntracks HTTP connection?

As far as I could tell there was no such option to be found in the settings. I can see there is the option to add username and password, but I'd love to see an option to add custom values.

This would be especially useful in the following situation:

I have reitti ( GPS Tracking/analyzer) https://github.com/dedicatedcode/reitti running in my homelab, which I don't want to expose publicly. Currently I use my Tailscale P2P VPN to access my Homelab from Remote, some specially important apps, that I need access to very often, I have exposed via Cloudflare Tunnels behind security configuration and cloudflare access (SSO Login before you can access the website.) Now when using a mobile app, authentication obviously will not work as there is the cloudflare login page in between, for this scenario there are cloudflare access tokens, they use two headers, something like here: https://community.postman.com/t/how-do-you-add-cloudflare-service-auth-credentials/58334

CF-Access-Client-Id: e97f0EXAMPLEc00.access
CF-Access-Client-Secret: f36EXAMPLE20b

It would be really awesome to have support for custom http headers in owntrack, thanks!

CrazyWolf13 avatar Nov 11 '25 13:11 CrazyWolf13

The iOS app does support Custom HTTP headers:

https://owntracks.org/booklet/tech/json/#_typeconfiguration

https://github.com/owntracks/ios/issues/761

ckrey avatar Nov 11 '25 14:11 ckrey

@ckrey thanks for the info, though I'm using android, is there any plan to add this to android?

Thanks!

CrazyWolf13 avatar Nov 11 '25 15:11 CrazyWolf13

I believe it's on the todo list.

jpmens avatar Nov 11 '25 15:11 jpmens