Permissions policy violation: unload is not allowed in this document
Author: yhojann-clCreated Sep 2, 2026Updated Sep 2, 2026
When open a message shows only the template var:
And in the console says:
jquery-1.11.0.min.js:2 [Violation] Permissions policy violation: unload is not allowed in this document.
References:
- https://github.com/vercel/next.js/discussions/91378
- https://developer.chrome.com/docs/web-platform/deprecating-unload
- https://learn.microsoft.com/en-nz/answers/questions/5975894/violation-permissions-policy-violation-unload-is-n
Mailhog use a old and incompatible Jquery library with modern browsers.
Tested on Google Chrome 151.0.7922.173 (Build oficial) (x86_64).
Source: mailhog/MailHog