Not able to use ts-react-google-login-component node package in plugin for authentication in 7.8 OSS version

Right now, I am using elastic/kibana 7.8 OSS version code
I am trying to implement authentication using Google auth by developing a plugin.
For that I have installed the 'react-google-login' package using yarn and imported in component in plugin public folder.
On running the Kibana, it is throwing content-server-policy violations in the console
Can anybody help me to solve this issue or provide code for google OAuth

Here is the code:

         import { GoogleLoginButton } from 'ts-react-google-login-component';

throws following error:

Refused to load the script '' because it violates the following Content Security Policy directive: "script-src 'unsafe-inline' 'unsafe-eval' 'self'".

on changing csp.rules to the below following way also didnt work

  - "script-src 'unsafe-inline' 'unsafe-eval' 'self'"

I believe you need to use in your CSP policy, not a fully qualified URL to the platform.js file which isn't what it's attempting to load.

  - "script-src 'unsafe-inline' 'unsafe-eval' 'self'"

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