Support » Plugin: JWT Authentication for WP REST API » Unexpected Content received before Data

  • I am using angular with the wp-api and have followed the jwt-authentication instructions, but i am seeing some additional information being received before the data – on both successfull and error logins.

    It looks like NL . NL

    {"code":"[jwt_auth] incorrect_password",

    and im just doing a standard

    login(login): Observable<any>{
            return + 'token',login,ApiHttpService.getHeaders());

    As a result the login is failing as its not able to parse the response with the nonsense at the start. Any ideas?

    When i try with postman i do not see any additional information returned

Viewing 1 replies (of 1 total)
  • My htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
Viewing 1 replies (of 1 total)
  • The topic ‘Unexpected Content received before Data’ is closed to new replies.