• Resolved Rafa? Ca?ka

    (@rafaucau)


    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.

    • This topic was modified 3 years, 1 month ago by Rafa? Ca?ka.
    • This topic was modified 3 years, 1 month ago by Rafa? Ca?ka.
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.