I am making custom esClient in kibana to use API of elasticsearch . i dont wan't to use a kibana's ecClient

pre-flight request is giving: 200
CORS ERROR: Reson "kbn-version and content-type missing".

HOW TO PROCCED?

I am having the same error when try to send a POST request via Firefox but in chrome it works fine.