Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何修复angular中数字字段的跨站点脚本? 笔记_Javascript_Angular_Typescript - Fatal编程技术网

Javascript 如何修复angular中数字字段的跨站点脚本? 笔记

Javascript 如何修复angular中数字字段的跨站点脚本? 笔记,javascript,angular,typescript,Javascript,Angular,Typescript,我在创建和更新api中遇到学生id的跨站点脚本问题 函数创建(){ this.studentForm.controls['studId'].setValue(parseInt(this.stdService.studentID)); this.subscriptionthis.httpService.sendReq(api.createStuNotes,this.studentForm.value).subscribe((数据)=>{}); } 我只收到了数字域的跨站点脚本问题。这是一段代码,

我在创建和更新api中遇到学生id的跨站点脚本问题

函数创建(){
this.studentForm.controls['studId'].setValue(parseInt(this.stdService.studentID));
this.subscriptionthis.httpService.sendReq(api.createStuNotes,this.studentForm.value).subscribe((数据)=>{});
}

我只收到了数字域的跨站点脚本问题。

这是一段代码,不是XSS问题。不清楚您为什么认为自己存在XSS问题。没有直接将HTML/JS注入页面的代码。这是一段代码,不是XSS问题。不清楚您为什么认为自己存在XSS问题。那里没有直接将HTML/JS注入页面的代码。