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 http.post
login(login): Observable<any>{ return this.http.post(this.authApi + '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)
Viewing 1 replies (of 1 total)
The topic ‘Unexpected Content received before Data’ is closed to new replies.