let thumborUrl = 'https://thumbor.X.com';
let thumborGenerator = new Thumbor(thumborKey, thumborUrl);
let url = thumborGenerator.setImagePath(path).fitIn(width, height).buildUrl();
return `url('${url}')`;
Having thumborKey = null It works great as unsafe. If I set the key to my private thumbor key I get a malformed URL in my thumbor server log.
Edit: I identified that this happens when the URL redirects the image, maybe the backend uses the redirected URL instead of the URL passed in the query parameter to generate the signature token, that way the signature token generated in the backend and frontend are different?
Having
thumborKey = nullIt works great as unsafe. If I set the key to my private thumbor key I get a malformed URL in my thumbor server log.Edit: I identified that this happens when the URL redirects the image, maybe the backend uses the redirected URL instead of the URL passed in the query parameter to generate the signature token, that way the signature token generated in the backend and frontend are different?