peakshift / makers.bolt.fun

https://makers.bolt.fun
GNU General Public License v3.0
31 stars 21 forks source link

lightning address check fails #169

Closed f321x closed 1 year ago

f321x commented 2 years ago

When trying to add my lightningaddress (x@lnaddress.com) to my profile i get "lightning address is invalid" but when opening https://lnaddress.com/.well-known/lnurlp/x i get status 200, so it should work, there is probably some bug.

MTG2000 commented 2 years ago

Hey @f321x Thanks for reporting this.

I tried your lightning address just now, and it's as you said, not working.

The reason for that is actually simple. When the user enters a lightning_address in the input field, I try to make a GET request to the URL of this lightning_address just to make sure that the user didn't mistype the URL.

But the reason why this request isn't working on the address that you mentioned is because the request is failing due to CORS policy.

So if the lnaddress server could return the CORS headers, then the problem should be solved.

f321x commented 2 years ago

Thx for the quick check. This should probably be changed in the Satdress Server then.