Add a matcher to match requests and apply security rules based on the servlet Dispatcher type (FORWARD,INCLUDE,REQUEST,ASYNC,ERROR).
Context
This will allow users to define what happens in the case of an ERROR dispatch. This may help in cases such as gh-9181.
Comment From: nmck257
Created PR #9278 - let me know if I missed any functionality?