Catch data from CSP: report-uri |
Hi guys how can I catch the data from CSP: report-uri? I already active it in the config App and set the report URL in ContentSecurityPolicy.php like this:
Code: public $reportURI = '/csp-violation-report-endpoint'; Code: $routes->add('csp-violation-report-endpoint', 'Home::csp');
Yeah, I can give it try, but the problem is it doesn't even trigger although there's some CSP violation. Any idea what can cause it? thanks.
It seems your code should work.
My Config: Code: diff --git a/app/Config/App.php b/app/Config/App.php And controller: PHP Code: <?php
Hi, thanks for your reply. I follow all your code but it still doesn't work. I got this error in my console but still, i don't see any log https://ibb.co/zHggzmt
|
Welcome Guest, Not a member yet? Register Sign In |