I am creating a kibana plugin that embeds an instagram post and receiving this error:
C:\Users\User\Documents\Projects\kibana\plugins\kbn_tp_custom_visualizations\node_modules\react-instagram-embed\lib\index.js:135 Refused to load the script 'http://platform.instagram.com/en_US/embeds.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-CqL6nSDD5P//hIcm'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
I am aware that i need to add a csp rule to the kibana.yml file, i have tried the following:
I have also figured out that the lib that i am using react-instagram-embed makes requests on both HTTP's and HTTPS's version of that url, that was confusing me too.
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.