nuxt-directus icon indicating copy to clipboard operation
nuxt-directus copied to clipboard

getThumbnail adds access_token which break Netlify Image CDN

Open moemar opened this issue 1 year ago • 2 comments

When getting a image url through const { getThumbnail } = useDirectusFiles() we do get an 403 error from Netlify Image CDN saying the query parameter is not supported.

That is because the getThumbnail return an url with an added access_token at the end. And this is not supported by Netlify. How can we get around this?

moemar avatar Jan 15 '25 13:01 moemar

I think we can add an option to exclude the token. @sandros94 What do you think?

Intevel avatar Jan 16 '25 06:01 Intevel

I think we can add an option to exclude the token. @sandros94 What do you think?

Indeed. By next week I should be able to get back and work on these

sandros94 avatar Jan 16 '25 10:01 sandros94