fiatjaf / nos2x

nostr signer extension
281 stars 56 forks source link

Enable support for .localhost tld domains #64

Closed hendore closed 1 month ago

hendore commented 1 month ago

I use a .localhost tld in development when working on many websites throughout the day, the extension was failing on these websites due to the nostr-provider.js script not being accessible, I've added a rule which will match .localhost domains

http://example.localhost http://another.example.localhost/auth/login etc...

Without this rule, window.nostr will not be available.

Screenshot 2024-08-02 at 17 37 03