mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5493] [bug]: Cannot add self-hosted instance to desktop app #2112
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @silver886 on GitHub (Oct 18, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5493
Originally assigned to: @CuriousCorrelation on GitHub.
Is there an existing issue for this?
Platform
Desktop App
Browser
Firefox
Operating System
Windows
Bug Description
What happened?
When I add my self-host instance to desktop app, I get this error:
However, the http url works just fine.
Steps to reproduce
Additional details
I tried the endpoints listed in this file, https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/api/client.rs, and all of them work just fine.
Deployment Type
Self-hosted (on-prem deployment)
Version
2025.9.2
@lamicopalmato commented on GitHub (Oct 23, 2025):
I am running into the same SSL certificate trust issue with the Hoppscotch desktop app on macOS.
Setup details:
Hoppscotch AIO deployed on Ubuntu VM via Docker.
Application exposed through Nginx with SSL using self-signed certificates.
The web app works perfectly with no certificate errors.
The desktop app on macOS (idk on other OS) throws the same certificate trust error mentioned previously.
On the macOS client:
The self-signed CA certificate has been installed and trusted in the system keychain.
The CA certificate file was also copied to /etc/ssl/cert.pem to cover low-level verification requirements.
Despite these steps, the desktop app still fails to trust the self-signed certificate.
Additionally, when curling the API endpoint directly against the server:
bash
curl https://public-ip/desktop-app-server/api/v1/keyThe response is:
json
{"success":true,"data":{"key":"GmIIgfbUdlJZUQMVSeXsq8UsU7hXEHHKxWw0JnTROUE="}}This confirms the server is reachable and responding correctly over HTTPS.
Questions and suggestions:
Does the desktop app use a different mechanism or bundle of trusted CAs compared to the system/browser?
Could this be a limitation or bug in the desktop app’s certificate verification process on macOS?
Any recommended best practices or workarounds for using self-signed certs with the Hoppscotch desktop app for self-signed certificates?
Thanks for any guidance!
@tnmyk commented on GitHub (Oct 26, 2025):
@lamicopalmato @silver886 Can you try adding the https URL (as well as http as shown in the docs) to the WHITELISTED_ORIGINS in .env.
https://docs.hoppscotch.io/documentation/clients/desktop#hoppscotch-self-hosted-edition-for-community
@Gum97 commented on GitHub (Oct 28, 2025):
same problem
@lamicopalmato commented on GitHub (Oct 28, 2025):
I ran several configuration tests.
Deployment on local home network OK (without TLS)
Deployment on VPS KO (TLS self-signed and without TLS)
Deployment on VPS OK (TLS with good certificates)
@Gum97 commented on GitHub (Oct 29, 2025):
i deploy vps docker AIO or containers for the services with nginx manager not OK. U can share docs deploy it
@silver886 commented on GitHub (Oct 30, 2025):
@tnmyk I followed this guide, https://docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build#using-individual-containers-for-the-services.
WHITELISTED_ORIGINS=https://hoppscotch-api.mydomain.com,https://hoppscotch.mydomain.com,https://hoppscotch-admin.mydomain.com,https://hoppscotch-app.mydomain.com,app://hoppscotch,app://hoppscotch-app_mydomain_com,http://app.hoppscotch-app_mydomain_comis set and that doesn't work.It's weird I can connect to my instance without TLS but not with TLS.
@SeoHyeonMyeong commented on GitHub (Dec 30, 2025):
Note: I'm Korean, so I used AI translation for this comment. Please excuse any awkward phrasing.
I managed to get this working after extensive troubleshooting. Here's the process for others facing similar issues:
Setup: Self-hosted Hoppscotch with Docker + Nginx reverse proxy
Problem: My TLS cert works fine with curl/Chrome but Safari rejects it (Apple policy: >398 days invalid, mine is 5-year). Since macOS desktop app uses Safari/WebKit, connection failed.
Solution steps:
http://mydomain.com:3111)Cmd+Opt+I) and found weird origin header:http://mydomain_com_3111.envWHITELISTED_ORIGINS:app://mydomain_com_3111,http://app.mydomain_com_3111Results:
[success] macOS: works after ATS modification
[success] Windows: works after step 3 only
[failed] HTTPS: couldn't solve due to Apple cert restrictions
Key insight: desktop apps use unusual origin formats and macOS has stricter HTTP policies than Windows.
I learned that Safari performs much stricter TLS validation than Chrome/curl. Could someone test this in an HTTPS environment with a certificate that passes Safari's TLS validation?