A warning in the REST API breaks headless WordPress
-
When my app trying to visit
*****/wp-json/wp/v2/media
, I get a warning:<br /> <b>Warning</b>: Undefined array key "HTTP_REFERER" in <b>******/wp-content/plugins/litespeed-cache/src/router.cls.php</b> on line <b>192</b><br />
This breaks headless installations and other applications that use the WordPress API because they don’t get the correct JSON. Disabling
WP_DEBUG
did not help.You can reproduce this using Postman.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘A warning in the REST API breaks headless WordPress’ is closed to new replies.