CodeIgniter Forums
Remove Inline Styles From error_404.php, error_exception.php, and production.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Remove Inline Styles From error_404.php, error_exception.php, and production.php (/showthread.php?tid=85874)



Remove Inline Styles From error_404.php, error_exception.php, and production.php - donpwinston - 12-15-2022

Inline styles are not allowed when Content-Security-Policy is enabled. Please remove them from error_404.php, error_exception.php, and production.php. They also cause the debug bar to malfunction if it is also turned on.


RE: Remove Inline Styles From error_404.php, error_exception.php, and production.php - kenjis - 12-15-2022

You are correct!

The CSP feature is not perfect yet.
The contributions are welcome.