Full text search using POST request saying Forbidden 403 error

Hi trying to use fts using post request when i am trying to access couchase using POSTMAN its works.

but when i am sending post request through jquery its saying forbidden 4.3 here is my code

let headers = new Headers();

headers.set('Content-Type','application/json;');

headers.set('Authorization', 'Basic ' + btoa('admin' + ":" + '5121451214'));

let bostdata = 

{

    "explain": false,

    "fields": ['*'],

    "highlight": {},

    "query": {

        "query": "9059752843"

    }

}

// Default options are marked with *

let response = fetch(‘http://localhost:8094/api/index/def_search_customer_index/query/’,

{

method: 'POST', // *GET, POST, PUT, DELETE, etc.

mode: 'no-cors', // no-cors, *cors, same-origin

cache: 'no-cache',

referrer: '*client',

credentials: 'include',

headers: headers,

body: JSON.stringify(bostdata)

});

let resdara = response.json();

console.log(resdara);

//BROWSER RESPONSE

  1. uest URL:

http://localhost:8094/api/index/def_search_customer_index/query

  1. Request Method:

POST

  1. Status Code:

403 Forbidden

  1. Remote Address:
  1. Referrer Policy:

no-referrer-when-downgrade

  1. Response Headersview source

  2. Content-Length:

191

  1. Content-Type:

application/json

  1. Date:

Sat, 21 Dec 2019 01:15:20 GMT

  1. X-Content-Type-Options:

nosniff

  1. Request Headersview source

  2. Accept:

3./*

  1. Accept-Encoding:

gzip, deflate, br

  1. Accept-Language:

en-US,en;q=0.9

  1. Cache-Control:

max-age=0

  1. Connection:

keep-alive

  1. Content-Length:

78

  1. Content-Type:

text/plain;charset=UTF-8

  1. Cookie:

ui-auth-localhost%3A8091=e8c3dce9735ba928f7c590d742a24987; st_sessions=cmlvncdr01nhqofm408jumvfl554kmt0

  1. Host:

localhost:8094

  1. Origin:
  1. Referer:

http://localhost/cb_stitchit/*client

  1. Sec-Fetch-Mode:

no-cors

  1. Sec-Fetch-Site:

same-site

  1. User-Agent:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36

  1. Request Payloadview source

    1. {explain: false, fields: ["*"], highlight: {}, query: {query: “9059752843”}}

    2. explain: false

    3. fields: ["*"]

    4. highlight: {}

    5. query: {query: “9059752843”}