WithErrorCallback function is not able to access the original request #1186
Unanswered
tobiaschielens
asked this question in
Q&A
Replies: 1 comment 2 replies
-
WithErrorCallback can now also access the context.Context of the request. You can propagate details there. See coraza/internal/corazarules/rule_match.go Lines 152 to 179 in 681787e |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We want to create an overview of blocked requests. The database for this overview is located on another server. We want to log headers and data to that second server.
With the
WithErrorCallback(handleErrorCallback)
we can get the reason why the request was blocked but we would also like to be able to forward more details to our second server.How would we be able to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions