lnbits / cashu

MIT License
9 stars 3 forks source link

mint keys unable to fetch if mint URL has no HOSTNAME part #66

Open tlindi opened 8 months ago

tlindi commented 8 months ago

Both extension version v0.3.3 and 0.4.5

mint URL: https://DOMAIN.DOM/lnbits/cashu/mint/HASH Cashu.me: https://wallet.cashu.me/?mint=https://DOMAIN.DOM/cashu/api/v1/HASH Nutstash https://wallet.nutstash.app/?mint=https://DOMAIN.DOM/cashu/api/v1/HASH

Both wallets give error:

Could not connect to mint. Failed to fetch. 
Mint activation failed: Failed to fetch Could not get mint keys

both URLs

https://DOMAIN.DOM/cashu/api/v1/HASH/keys and 
https://DOMAIN.DOM/cashu/api/v1/HASH/keysets

work when manually checked.

If I change front end configuration to HOST.DOMAIN.DOM both wallets can add mint successfully. mean URL is https://HOST.DOMAIN.DOM/lnbits/cashu/mint/HASH

I have a test setup DM if wanna see live.

tlindi commented 8 months ago

btw: LNbits Cashu Extension Mint addresses over Tor to https://torconnectstring.onion work on cashu.me and nutstash too.