How to solve the error of https protocol post method?

In below code I try to post form to registration but it fails:

submitForm() {
    let headers = new Headers(
        'Content-Type': 'application/json'
    let options = new RequestOptions({ headers: headers });

    let data = JSON.stringify({
      time: this.form.time,

    let url = '';

    return new Promise((resolve, reject) => {, data, options)
        .then((response) => {
          console.log('API Response : ', response.status);
        .catch((error) => {
          console.error('API Error : ', error.status);
          console.error('API Error : ', JSON.stringify(error));

I can’t read your screenshots, but let’s clean this up.

You don’t need to set the content type. You don’t need to make headers. You don’t need to make RequestOptions. You don’t need to stringify payloads manually. You don’t need to explicitly instantiate a Promise.

this issue seems was related with loopback and nginx SSL certificate. it seems chrome dosen’t allow to Self signed certificates since 58+ version.

this error was resolved when SSL problem was solved.

But the question is, still http post is not secure enough I can read post by fiddler 4.

LetsEncrypt offers free SSL certs; there’s no need to have self-signed any more.