private baseUrl = 'https://diallosuer:8443/sprintproject';
submitForm(form: FormGroup) : Observable<HttpEvent<any>> {
let dataJson = JSON.stringify(form.value);
const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json',
"rejectUnauthorized": 'false',
}),
}
const req = new HttpRequest('POST', `${this.baseUrl}/adduser`, dataJson,httpOptions);
return this.httpClient.request(req);
}
不能,您的 ssl 证书无效。您可以使用
http
而不是 https
来跳过 ssl,但这并不是一个实际的解决方案。