I am using the address field in a custom registration form and it uses ajax to format the address fields. By default drupal uses system/ajax (http://api.drupal.org/api/drupal/includes--ajax.inc/group/ajax/7).
How can I not restrict that path so that ajax can work?
Comments
Comment #1
bobooon commentedDrupal 6 EOL is February 26, 2016. For that reason, Drupal 6.x version of this module is no longer supported.
Comment #2
jdanthinne commentedGot the same issue with anonymous trying to send an image with an AJAX call…
(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'), // AjaxJust added
to the list of checks in required_login.module.
Comment #3
bobooon commented@jdanthinne You should add the Ajax path in question to the modules exclude paths configuration. For example if the Ajax callback path is /ajax/send-image add that path to the exclude paths configuration. That effectively turns off restrictions for that specific Ajax callback without hacking the module.
Keeping as Closed (Won't Fix) for two key reasons: