Attempting to code a simple html page that generates a lightning QR code and utilizes an API key from Strike. Keep running into issues.Any developerbout there that could help nail this down for some sats?

Here's my mocked up page so far. Trying to utilize Netlify for simple hosting solution.

https://warm-platypus-211a27.netlify.app/

Reply to this note

Please Login to reply.

Discussion

I'm on mobile so I can't check properly but it's a 401 error which means it's unauthorized maybe no permissions from strike api?

That's exactly what it was. Thank you.

careful including api keys in HTML or javascript. anyone can view it and use it.

I deleted that API key for safety prior to sharing

I'm now using the API within the Environment Variables part of Netlify..... I really have no idea what I'm doing. Vibes, 😂.

#asknostr