I want to send custom cookie in POST request to another domain (my domain) from localhost

I set cookie by document.cookie="test=test";
and i can see its set correctly by console.log(document.cookie) , Now When i use following code cookie is not sent though.

```
  $.ajax({
        url: 'https://secure.domain.com',
        type: 'POST',
        data: "hi",
        cache: false,
        contentType: false,
        processData: false,
        xhrFields: {
            withCredentials: true
        },
        crossDomain: true
    });

```

I even disabled chrome security by running following command

```
 -args --disable-web-security --user-data-dir 

```

Only following headers are sent

```
Accept: */*
Content-Type: text/plain;charset=UTF-8
Origin: http://localhost:8888
Referer: http://localhost:8888
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.30 Safari/537.36

```

Note : This is only for my personal use , so i can disable chrome security or modify anything for my use.