[DEPRECATION] Added csrf_provider and intention deprecated error trigger.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12610
| License       | MIT
| Doc PR        |