I have just performed a brand new install on Ubuntu 22.04 via docker compose.
After creating an invoice, if I click the “View PDF” , it gets an error
XMLHttpRequest error.
The preview of the PDF in the window shows the PDF file.
The env file has
APP_DEBUG=false
REQUIRE_HTTPS=false
PHANTOMJS_PDF_GENERATION=false
PDF_GENERATOR=snappdf
TRUSTED_PROXIES=‘*’
Which http port are you connecting over? 80 or 443?
From the limited screen shots it looks like you are connecting over https but the backend is configured on http
If you are running on a public network, and do not want to use a proper domain, then move this installation to a local environment where you can by pass all of this.
You can use the .test tld locally and you will not have any of these issues.