Closed luxemate closed 5 years ago
Just replace line 112
with return "https://api.qrserver.com/v1/create-qr-code/?data=$urlencoded&size=${width}x${height}&ecc=$level";
Thanks, has been commited: 4f80232ee76e78eae9977236ee8c7fda7518322a
Thanks! Would be great to also have a way to define your own URL for QR code generation (we backed off to our internal URL), to have a choice between open solutions or not rely on them altogether, as they work today and might not work tomorrow. But that's a different story. :)
Of cause you can generate your own QR code URL. Just use the secret (via createSecret()
) and build your own URL. The built-in function is just a small help for convenience, but nobody is forced to use it 😄
Google Charts API has a nice warning about that:
And returns 502 instead of qr-code: