Plone restAPI Authentication for Images in internally published Folder

Hey there,

we have a Plone 6.0.6 with plone.namedfile updated to 6.2.3 and plone.restapi 8.40.0.

Now we have a folder that is internally published and the authentication on objects like documents works find. But we have Images in a richtext field and those will not show up in out nextJS Frontend because the API just loads the URL, but won't send the Authentication along I would assume. So we get the information: Unauthorized: "You are not allowed to access 'image' in this context"

Any information how to do this one right?

Greetings,
Janina