• When accessing the WordPress API using a Java program with this plugin active, I get the error message “a header value contains prohibited character 0x7f at index 46.”

    I found out by deactivating this plugin and viewing the log messages that the invalid character is in this header field (pictured here as <DEL>, please note that a “w” from “www” is missing):

    Set-Cookie: br_lgv_stat=default%7Cdefault; path=/; domain=<DEL>ww.jf-elektronik.de

    Thanks and regards!

Viewing 1 replies (of 1 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    What exactly API functionality do you mean, plugin do not use setcookie function for WordPress REST API functionality, but other function can affect this issue.

    You can try to change in file includes/functions.php this line

    setcookie ( 'br_lgv_stat', $cookie_lgv, 0, '/', $_SERVER['HTTP_HOST']|$_SERVER['SERVER_NAME'] );

    to this

    $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
                    setcookie ( 'br_lgv_stat', $cookie_lgv, 0, '/', $domain );

    Regards,
    Oleg

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid Character in Header / Cookie’ is closed to new replies.