As stated by Ankit this error is caused by introduction of Content Security Policy to prevent the browser from allowing unsafe scripting. But in latest versions of kibana this warning can be disabled in kibana.yml
by setting:
csp.strict: false
Source: https://www.elastic.co/guide/en/kibana/8.6/Security-production-considerations.html#csp-strict-mode