Closed CamTheGoblin closed 1 year ago
Can you please share the x-request-id
https://github.com/imagekit-developer/imagekit-nodejs#access-request-id-other-response-headers-and-http-status-code?
'x-request-id': '9e42a9fa-282d-4380-a8c6-88241ae646cf'
Hi, I was wondering if there was any update on this? I'm getting the same problem.
Please provide the minimum code to reproduce this problem and reopen this issue.
Fixed in version 4.1.4
I am attempting to rename a file , pretty much following along with the example in the documentation. but it is getting an Error response: { error: 'Invalid CSRF Token' }
here is how I have the code set up:
Just before this I am retrieving the oldFilePath value via a imagekit.getFileDetails call:
and that is correctly giving me the file path, so the ImageKit instance appears to be set up correctly, its just the renameFile that is failing on me. I am running the in a NextJS application as a localhost server in case that makes a difference. I am not familiar with CSRF Tokens, is there something I have to change to get the tokens to validate correctly?