Skip to content

Using safe mode I get a 400 http status error code. #9

Description

@murilozilli
    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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions