Exclude ajax requests per url/params
-
I have a plugin-provided form which is designed to behave in an unusual way: When the user clicks the submit button for the form, an AJAX call is submitted to the server, and only after that AJAX response is received, the form is actually submitted.
While I’m able to exempt the form itself from cleantalk processing, using “Form Signs Exclusions”, I’m not easily able to identify a suitable regex to exclude this AJAX call, and it occasionally chokes on cleantalk processing, thus breaking the form.
FWIW, this AJAX call includes only one array item in the payload, “params”, for which the value is a json-encoded set of data. Setting cleantalk to exclude any form with a data key named “params” seems like it will be overly aggressive, considering that’s a rather generic key name.
You can probably identify the AJAX call in the behavior of the form linked in this ticket, but I’m happy to provide a .har file as well.
The page I need help with: [log in to see the link]
The topic ‘Exclude ajax requests per url/params’ is closed to new replies.