corazawaf / coraza-caddy

OWASP Coraza middleware for Caddy. It provides Web Application Firewall capabilities
https://www.coraza.io/
Apache License 2.0
355 stars 41 forks source link

Pass error details to PHP #162

Open Simbiat opened 4 months ago

Simbiat commented 4 months ago

Is it possible to somehow pass the error details to PHP, when request is interrupted by Coraza? I hoped that {http.err.message} would have something, but it seems to show only generic interruption triggered. I have custom error pages generated by PHP, and I want to customize them if it's Coraza that interrupts request. I was not able to find anything in documentation or anything obvious in code.