Custom plugin Content Security Policy problem

i wrote a sql plugin for es7,and after installed it,query dataset by sql in kibana,i found kibana cause a Content Security Policy problem, the complete message as followed

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-jHPATaeGD121pcYk'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.

A single error about an inline script not firing due to content security policy is expected!

and then kibana got a message

  "statusCode": 504,
  "error": "Gateway Time-out",
  "message": "Client request timeout"

How to solve this problem?


1 Like

I see the same error in the browser console. Everything works though.

Hello ,
My problem was solved,may be it caused by serialization,I changed anothor
way and it works。
But I dont konw Why is that you got the same error but everything works


1 Like

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