0
 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);
   
   
  }
1

1 Answer 1

0

You can't, your ssl certificate is invalid. You can skip ssl by using http instead of https but that would not be an actual fix.

Sign up to request clarification or add additional context in comments.

3 Comments

when i use http, i got error certificate
after using http i got this error net::ERR_SSL_PROTOCOL_ERROR
Obviously. Server is serving handshake on this port, you cannot just ignore ssl layer .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.