08-09-2018 12:32 AM
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
08-13-2018 06:07 AM
I have added "__assist_csdk_popup__.html" in react app root folder which resolved the issue.
10-31-2018 04:33 AM
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?
11-11-2018 10:51 PM
Created Myself. Just html file, no need to have any content
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide