Please upgrade your browser This Kibana installation has strict security requirements enabled that your current browser does not meet

We are building a POC to deploy Kibana iframe using a react app.
We have an existing react app and have embedded the iframe into it. Elastic cloud version 8.3.3 is used.
The iframe successfully loads but we do not want the ES login page to appear. Therefore we are passing a API Token using these headers for automatic login.

import React, { useEffect, useState } from 'react';
export const ElasticDashboard = () => {
  const [urlObject, setURLObject] = useState(null);
  const url =
  const apiKey = 'apiKey==';
  useEffect(() => {
    const fetchIframeXHR = async () => {
      let xhr = new XMLHttpRequest();'GET', url);
      xhr.onreadystatechange = handler;
      xhr.responseType = 'blob';
      xhr.setRequestHeader('Authorization', `apikey ${apiKey}`);
      function handler() {
        if (this.readyState === this.DONE) {
          if (this.status === 200) {
            // this.response is a Blob, because we set responseType above
            let urlObject = URL.createObjectURL(this.response);
          } else {
            console.error('Page not found');
  }, []);
  return (
      <iframe title='elastic_charts' src={urlObject} height='700'></iframe>

Currently POC is running in the localhost with http protocol.

We currently have these configurations on Kibana.yml
server.cors.enabled: true
server.cors.allowOrigin: ['*'] None
xpack.reporting.roles.enabled: false
csp.strict: false
#csp.script_src: [https://kibana_url:9243 'self' 'unsafe-inline' 'unsafe-eval' https://*]
csp.script_src: [ http:// 'self' 'unsafe-eval']*

All these configurations led us to this error on the browser and no errors on console.
Can anyone please provide any help?

Google Chrome version

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.