Our CakePHP 4 web app sends email to clients with a link for direct download. When the client clicks on the link, the download of the document starts.
This works great if the user receives the mail in their email client, or clicks on the download link in the web app, but if the user receives the mail in Gmail (Web client), the file is not transferred.
Are there any obstacles, or settings?
We also use:
$securityHeaders = new SecurityHeadersMiddleware();
$securityHeaders
->setCrossDomainPolicy()
->setReferrerPolicy()
->setXFrameOptions()
->setXssProtection()
->noOpen()
->noSniff();