How to prevent CSRF attack in angular7 when I use XMLHttpRequest
let xhr = new XMLHttpRequest(); var inputData = {};
xhr.open('POST', this.hostUrlConstants["baseUrl"] + this.pathUrlConstants["xxxx"] + this.pathUrlConstants["yyy"] + "/" + scenarioId, true);