the error is as follows:
Code:
list(criteria: RecommendModel) {
return this.http.post("http://music.163.com/weapi/personalized/newsong",
criteria,
{
/* headers: this.headers*/
headers: new HttpHeaders({
"Accept": "*/*",
"Accept-Language": "zh-CN,zh;q=0.8,gl;q=0.6,zh-TW;q=0.4",
"Content-Type": "application/x-www-form-urlencoded"
})
})
.toPromise()
.then((data: any) => {
return data;
})
.catch((err) => {
console.log(err);
});
}
is there anything else I need to deal with besides setting up headers? The
interface is from
https://binaryify.github.io/N.