Skip to content

Incorrect signed URL #45

@imagekitio

Description

@imagekitio

Steps to reproduce:

Turn on Restricting Unsigned URLs from your imagekit dashboard as per docs here.

Then using the code below, generate a URL for one of the uploaded assets in the media library. Try to access the URL, it will return an error.

require 'imagekitio'

public_key = 'public_key'
private_key = 'private_key'
url_endpoint = 'https://ik.imagekit.io/endpoint'

imagekitio = ImageKitIo::Client.new(private_key, public_key, url_endpoint)

path = "https://url/";

print imagekitio.url({
  path: CGI.escape(path),
  url_endpoint: 'https://ik.imagekit.io/endpoint/proxy',
  transformation_position: 'query',
  query_parameters: {
          tr: 'w-263,h-197,fo-center,cm-pad_resize,dpr-2.0,rt-auto:ow-526,oh-394,obg-00000003'
  },
  signed: true
})

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