Skip to content

Commit

Permalink
proxy LNURL requests through cors-anywhere
Browse files Browse the repository at this point in the history
I don't know if this is going to work.
  • Loading branch information
fiatjaf authored Dec 6, 2020
1 parent 05e7762 commit 91a6406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/invoices.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const handleLNURL = (invoice: string) => {
const decodedLNURL = bech32.decode(invoice, 1500);
const url = Buffer.from(bech32.fromWords(decodedLNURL.words)).toString();

return axios.get(url, {
return axios.get('https://cors-anywhere.herokuapp.com/' + url, {
headers: {
'Access-Control-Allow-Origin': '*',
}
Expand Down

0 comments on commit 91a6406

Please sign in to comment.