CORS error when generating/displaying pdf

I have an issue with Invoice Ninja 5.6.14 self-hosted.

Pdf generation doesn’t work for me, not in the snappdf / phantom / hosted_ninja way.
When trying to view a pdf these errors appear

CORS policy: Request header field x-client is not allowed by Access-Control-Allow-Headers in preflight response

When starting up the application, the logo isn’t loading too

Access to XMLHttpRequest at '<hidden>/iaw59mknfu4plcjdoz7dxfpuqoy/FFetljNUKzXm58yRhceszDum8pDpz01hiJE9f5BW.png' from origin '<hidden>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

In the laravel log I can find this error

[2023-07-09 05:26:24] production.ERROR: Unable to generate the raw PDF {"exception":"[object] (App\\Exceptions\\FilePermissionsFailure(code: 0): Unable to generate the raw PDF at /<hidden>/public_html/facturen/app/Jobs/Entity/CreateRawPdf.php:208)

Should I change some file/folder permissions or any other suggestions ?



Sorry for the trouble, we’ll share a new release today with a fix.

cc @david

perfect, thanks for the quick reply and fix !

v5.6.17 is available with a fix