However, I don't have control over this api so I cant change what headers/origin it accepts. The external REST api accepts all origins. However, the cors preflight check when I try an ajax call fails because kbn-version is in access-control-request-header.
Actual Error:
request header field kbn-version is not allowed by Access-Control-Allow-Headers in preflight response.
Is there a way I can remove this header when I make an ajax call from my plugin's controller.js
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.