A warning in the REST API breaks headless WordPress




Wordpress LScache Plugin: A warning in the REST API breaks headless WordPress

Last Updated on: Wed, 15 Apr 2026 00:00:02
When my app trying to visit /wp-json/wp/v2/media, I get a warning: Warning: Undefined array key HTTP_REFERER in /wp-content/plugins/litespeed-cache/src/router.cls.php on line 192 This breaks headless installations and other applications that use the WordPress API because they dont get the correct JSON. Disabling WP_DEBUG did not help. You can reproduce this using Postman. This topic was modified 1 year, 1 month ago by Rafal Calka. This topic was modified 1 year, 1 month ago by Rafal Calka. Fixed in v4.4.4-a2.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference