Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current http header sent with each reply on '/ajax/ajax_facets/refresh' sets the http content type as text/html.
When a Drupal project using ajax facets sits behind a Web Application Firewall this causes issues (WAF).
The WAF sees the 'text/html' header and escapes json elements and injects html/body elements into the response.
Adding "header('Content-Type: application/json');" before the json is printed out rectifies the issue.
Comments
Comment #3
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedGreat. I agree with you. Committed.
Comment #4
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commented