Well, I really should’ve done this to begin with, but I took a look at my NGINX logs while the infinite scroll would hang, and it turns out the NAXSI web application firewall module I’m using in NGINX is blocking infinite scroll due to anti-XSS/ant-SQL injection policies. Specifically it’s because of square brackets and usage of the word “update”.
Hopefully this will help anyone else out on Google with a similar issue, but here is what I added to the WordPress NAXSI whitelist to allow infinite scroll:
BasicRule wl:1310,1311 "mz:$BODY_VAR:scripts[]|NAME";
BasicRule wl:1310,1311 "mz:$BODY_VAR:styles[]|NAME";
BasicRule wl:1310,1311 "mz:$BODY_VAR_X:^query_args\[.*\]|NAME";
BasicRule wl:1000 "mz:$BODY_VAR:query_args[update_post_term_cache]|NAME";
BasicRule wl:1000 "mz:$BODY_VAR:query_args[update_post_meta_cache]|NAME";
Related Posts:
- Isotope with Infinite Scroll
- Jetpack infinite scroll not working on twentysixteen custom theme
- Jetpack Infinite Scroll – changing number of posts
- Jetpack Infinite Scroll, Isotope and ImagesLoaded
- How to disable Jetpack modules such as Stats?
- Cannot activate Jetpack on my server
- Jetpack Infinite Scrolling For Multiple Columns On Same Page?
- Custom Loop and Infinite Scroll
- Popular posts by view with Jetpack
- Gravatar Hovercards (Jetpack) jQuery error
- Jetpack – stats_get_csv period parameter
- Using stats_get_csv to return a list of popular posts by views with thumbnails
- Jetpack infinite scroll render – make different depending on post type?
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- How do I update the site URL used by Jetpack subscribe widget [closed]
- Jetpack infinite scroll not working on Twenty Twelve [closed]
- Can’t connect to my WordPress website using Windows 8 app?
- What does this number represent in JetPack stats? [closed]
- I have a self hosted blog but now the WordPress.com stats plugin has stopped working
- jetpack suddendly stopped working [closed]
- Exclude Post Type from Jetpack Infinite Scroll
- Jetpack social icons in other places on site
- Why I can’t modified jetpack default blank.jpg on og:image?
- How to remove WordPress’ Jetpack plugin completely? [duplicate]
- How do I remove quantcast from my sites?
- Customizing JetPack Publicize Sharing
- how to get jetpack’s infinite scroll to work with woocommerce?
- Changing sort order for presentation by Jetpack infinite scroll
- Change $content_width based on screen size (functions.php)
- infinite-scroll for 2 fixed height containers
- Jetpack button location buffering [closed]
- Redirect to another page using contact form 7? [closed]
- Does Jetpack conflicts with load_template()?
- Hide Jetpack for Contributor [closed]
- How do i import email addresses into WordPress.com subscriptions? [closed]
- Hiding Jetpack Ads from users who are signed in?
- Remove Jetpack infinite-wrap
- How to allow users to write jetpack custom post types? [closed]
- Missing Jetpack Contact Form button when running locally [closed]
- Jetpack Infinite Scroll won’t fire [closed]
- Why does Jetpack insert it’s script outside the tag?
- Updating shortlinks from staging [closed]
- Jetpack Publicize and Android
- How can I get the Jetpack Image plugin to open links in a new window? [closed]
- Infinite Scroll on Self-hosted WordPress [closed]
- How to remove Stats by jetpack dashboard widget?
- Publicize in Jetpack stopped working on Custom Post Type it works in Blog Posts
- Jetpack Top post widget (display post views)
- Unable to setup jetpack on my site
- Where does Jetpack store markdown?
- The plugin jetpack/jetpack.php has been deactivated due to an error: Plugin file does not exist
- Jetpack URL shortening, fixing after website URL change
- Jetpack Infinite Scroll Not Working
- how to disable jetpack for non admins?
- Popular posts – based on pageviews
- Implementing backbone.js to retrieve category posts using JSON API
- Jetpack email sharing button to include image on email sent
- Is there a way to enable a Jetpack module via `functions.php`
- Pageview confusion [closed]
- query posts only works on the first page
- Force Jetpack to not use og:image tag for favicon / Site Icon [closed]
- Using Jetpack to track an Ajax powered blog [closed]
- Jetpack: Access visitor stats in templete
- How do I change the header image height in Twenty Seventeen?
- Trying to get custom post meta through Jetpack JSON API [closed]
- ‘Lazy loading’ list of posts with pagination
- Setting Login with User Name and Password default option for Jetpack Admin Login
- Allow latex in wordpress excerpt
- Infinite Scroll not working in own theme
- Filter and modify entry-footer link in twentyseventeen
- Jetpack API for WordPress Network
- Jetpack’s photon causes local site to try and serve images from WordPress CDN [closed]
- Can I add customizer sections in the Twenty Seventeen theme?
- Init plugin again after ajax call finish
- How to prepare the back button action to deal with infinite scroll?
- Incorrect url for sharing blog on linkedin [closed]
- When someone likes an article on my blog, they are prompted to log in on WordPress.com [closed]
- Cropping images from top center using Jetpack Photon
- Different page template for paginated content?
- Jetpack stats and caching strategy [closed]
- Jetpack: Subscribe via e-mail [closed]
- How can I hide this custom slider while Elementor editing window is open?
- Shortcode not working in Jetpack Top Posts & Pages widget
- WordPress mobil will not scroll
- Newbie Question: can I change a theme’s section without hard coding?
- the_content filter not working when Jetpack activated. Any idea?
- Infinite scroll doesnt work
- Problem with submenu position when nav bar is at the bottom
- Fetching WP.me shortlinks for posts using WP Rest API
- Load next post by ID on a single page
- How do plugin updates work?
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- How can I stop Jetpack mobile theme from using full size featured images?
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Jetpack ‘Blog Subscription’ widget doesn’t add emails to
- Twenty Seventeen Theme – scrolling text over background images
- Infinite Scroll applied to ajax loaded content
- Delete old JetPack Site Stats? encrypted_search_terms in top search terms [closed]
- Footnotes with dynamic title attributes?
- Icon not shown in Dropdown menus in Twenty Seventeen Theme