-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
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
})cspeer
Metadata
Metadata
Assignees
Labels
No labels