cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8338
Views
0
Helpful
3
Replies

Need help in integrating REM web SDK with ReactJS application

lakshmar
Level 1
Level 1

Hi, am trying to integrate REM web sdk with ReactJS application and seeing some issues.

I have downloaded Expert Assist Web Consumer SDK 11.6.1.10000-7.zip and hosted it locally with in react js application.

1. Added assist.js file in index.html as below.

<script src="{local-path}/sdk/web/consumer/assist.js"></script>

 

2. Calling startSupport as below.

AssistSDK.startSupport({destination: 'sip:xyz@xyz'}

 

It opens new window with blank screen and seeing below error in console log.

 

Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-PToEL5yoxuxmTuY1Qy4FoXHcDvQaMpHCVia2Nm+qXlc='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

 

Also please suggest if any REM integration document with ReactJS application.

 

Thanks,

Lakshman

3 Replies 3

lakshmar
Level 1
Level 1

I have added "__assist_csdk_popup__.html" in react app root folder which resolved the issue.

Hi, I am stuck with the exact same thing,  was this file [__assist_csdk_popup__.html] a part of the sdk, or you downloaded from somewhere, or created yourself?

Created Myself. Just html file, no need to have any content