SDK Subresource Integrity

A Subresource Integrity (SRI) check is a security feature that enables browsers to verify that the resources they fetch are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match.

Note

To use SRI, you must use a browser that supports this feature. If your browser does not support the feature, the browser simply loads the resource without any check. To see if your browser supports SRI, see here.

Usage

<script src="https://sdk.inbenta.io/chatbot/{version}/inbenta-chatbot-sdk.js" integrity="{hash-type}-{hash}"  crossorigin="anonymous"></script>

Instructions: Copy the above code to your page and replace {version} and {hash-type}-{hash} with the desired values (See table below).

Example
<script src="https://sdk.inbenta.io/chatbot/1.17.0/inbenta-chatbot-sdk.js" integrity="sha384-dt1UKYmpAOWAkLxB7WaT910ueRVDqImO/ETqwZEvtDLAOGamMpnftUvg9RFI6wAw" crossorigin="anonymous"></script>
If the check fails...

If the integrity check fails, the resource is not loaded and an error message is created in the browser console. Here is an example of an error message after attempting to load a KM resource:

inbenta-chatbot-sdk.js

Version Subresource integrity hash
1.65.1 sha384-RqCP4YkwFaq1rMqmp/2i889SznEARfMX6jpl8kf9ETprIhk2QRnH09i4UhRLHg09
1.65.0 sha384-RYi0sfDNPH044YZMDiPQHkUsYCgErTVEe2QVoi4lV1y11OBq7nWHfsiv8d2AN73N
1.64.4 sha384-HeC0rI9mPPdmP2LMVDIscgwnD2RpMJrNBH7VTHDuc0EQKWp0XMGaZ8x3N16qxaDx
1.64.3 sha384-YkcTeIaInVnzsVc/Cbf7d26gUQ+o/Jy1ZAbPlZU9eop3sCgt0B7nwM7yRFeemEea
1.64.1 sha384-0ACzUcQuwSiS9n4k11KgcJxz+Wr555yIHNPFrobm+iiU0ZOlfiZVdKmPWcjIoxiz
1.63.0 sha384-HFm3Ni8uLH0GO1qZkzz6ENpGhPdv5bLVxsJjmZ8pKBFBV64YN94HHnPhMnS+pF9z
1.62.2 sha384-XGweWCsXCgcJEsafaw0gz3IBFA+jTHvFfRiXBLJhdtr/P435xM/ozgX/BXJvi/ID
1.62.1 sha384-LpaAO6rNu0/65AvyBI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MeAtOd7/vqQl/KNpRBboBVgn
1.39.3 sha384-YDq8swKhSo+E4lNThYxKI7gUz+MTLxDvb3I+x4HbgSZtZFiFlUHles68UayyTINB
1.39.2 sha384-Cy9/eld3btSFObInYaBqaTikBRQ/VqAqS/Unc48AxEsXpvLmKrp3uxJIxiERbrkj
1.39.1 sha384-TNExAJZWeQNCHwlicTmo1eb0qEDlz5dWHU9KR3/7nJxhRCYqYbTR9kykgb5FSxnL
1.39.0 sha384-4bvGhEKgDor4DLVY/4FTtNZVKtwX/gjfmyKLUw85nTZYohnmhe8d7lvX1xnfjFyK
1.38.0 sha384-6tqzRCui56CVb6Kld/fl1zawjRattrkZhFOVFGCFxHrcgVEdSnXFHZp4HMbpLkNf
1.37.0 sha384-/MTafrj6YkqVeD5rbwOJqfyL5JJta2tETCTxd6nDwhWPQSP2NES9SVI0j5r91mxy
1.36.3 sha384-+DRAcj6eRuCTgs1uoo+at+0Fr7Lq4dcZRtohirkp+/6C2ocONAjq339CaZqXJTvr
1.36.2 sha384-NyFTBN4VcuT/4ggUXdRGBpJBsZ/s3+xsU1BLpPJxXHHsxcn8wHjEw1RYpMbJ7uHS
1.36.1 sha384-iv3lYFI3gFgKdS5PSK9aJxtEbrSYnwFEDLLDvIs7UujMjslOsXmujw1hnB1WJfuy
1.36.0 sha384-8X6WzB4od/Q5HltkMiyRSI3fGsvWhVmCsVb+vN6zXBiOR6whD8yH14L6qMCQsxzO
1.35.0 sha384-FyS/a8L+N9jFJw3x891Nb1jLJCPLWd4KjFZcx8elVigqIyH8+RB/wBJF2cC8AWFl
1.34.1 sha384-1+JRsDKNeRmyGhvbiR16Aay9olktvMPhV0vkM7ZsRcWG1k4mfXSazkeG8UbFAGkS
1.34.0 sha384-6+dGUhqwqPVz2EO1EoAkhHeSABFs5jO9jCUPP7UxF3PO+oKhvLtJUvUH1R+HHrln
1.33.0 sha384-5ssw2GHkrcCdY7GlJpKZYawdiiB3Zx9EojQoto89grW26VGllXdpLZQ3tIHtmgc1
1.32.0 sha384-BH3AcF9+Hze6rTEkxKdHQ92J/u29UE732knGmlEh63+6KuVxFA6FzrQ73WbyEedl
1.31.0 sha384-chYRaifLmMkx5Boes8JDa9L48dS888bCffMuVtfTf6Apj3v1OH9VXhf0Cby2See0
1.30.0 sha384-+crAfSfdTbIdyp/UjqMbkkeKsE7i2uwWMN5oDR7te4IiP7cC1jjrGDMNwZDFebtG
1.29.0 sha384-obVrVDRDET2T4niF9oUY4+Zx0ZB9kLWM8oxAyZ40Z1xiC5UZa0NNM0uy5Z2fx5oz
1.28.0 sha384-rYD1FvsyObwKmOIt5x0L9TQVq1VciV/MmVaikeT2/EaCNlOhaORLm+3aSrmlhfPI
1.27.0 sha384-rUn7a4VTsfGka8Hc5//zQuwDFGTLNsrcFgPXiHzw30bdvteCkup+qZlWivvxbE9g
1.26.0 sha384-JNTy/kdUAPwDBdoI7douqLBGBmjY4k7tiTpvtceCBuFDNeh/Wb0hEV4Wfjjbwlfi
1.25.0 sha384-qwR+pXGkMnImw6u3PUwfEbH2RQJeV5gqx21jIY71pVgRoqkCse7O9YcZV6RxFYNi
1.24.1 sha384-fdltYv6inYXBW2LKbRKd4il4YDXvMYIi36Ol45bs/atZItKiccJPscLaV+UNy4eR
1.24.0 sha384-tJlvv5OW2hoXjW/wHLZPSXnuBhTk/aUQMLPH2j4a7tihXchnQsEPSF7eJWa6PsRW
1.23.0 sha384-b89+o7tK4fz/vhmBcQ9FC5uQPTpAnGA1Fc5PkfME2UuGObKUGrmzjKDlkj8zzw5v
1.22.0 sha384-0HOG/bDzE9acOIqZv0viJPe/zerJltZLteocu+Rl1aHd5DkYf8iMZ0A68pqjSnwh
1.21.1 sha384-wNbIkLvGd7l3wbIyxr1BUhULkAJ26+oyqWT6E3oMKN2jQFVGbVINvTG1kuZuflNW
1.21.0 sha384-wQHHa3jlyYvrdRTvUgndNKZ4CnLDsG1ZIMGIWbq8t2QjlSv3rsimdiJCrJ0GY6+q
1.20.2 sha384-YuYlrrpQrzuuYztpwRgEPp18QKRhna2vzLOnGPBGK2mlIC7gJWgzbIDqO1clbXen
1.20.1 sha384-1rn72MRserL1+lwsaIr4I70/lTLTKoOjdoKY8BcXPV/KMBgNUKQMlnZbj7MPNwtD
1.20.0 sha384-nFuZP4Zkdd5mMMTjehpern8PaT+HifGE+ZMc/lrgP9dAOdjAv1R8bqPU7iPsbhl2
1.19.1 sha384-Db25bw/26TD2R3IcKX1Hev6VgLJUTCghN5D4Uolk7x92B4mpU30P8cN8oVX2oflz
1.19.0 sha384-WVCpf4QMneNlbyWIwIUzepksJAIn6SdfC2LNKMa1W66RIGGpT99xyPLc7C8nS84m
1.18.0 sha384-p3+MmPUCe97JSDG8RxBgJ7Ei4LR0X0FS1hmww55JeFiE426Hm8F80BZGxzo+WscP
1.17.0 sha384-dt1UKYmpAOWAkLxB7WaT910ueRVDqImO/ETqwZEvtDLAOGamMpnftUvg9RFI6wAw
1.16.0 sha384-9K5o2fPlkJx3wfcffW+ufDumZNQL2btDAt1sLicRiDXcVNopNFK+Gnm/k5WU8ytw
1.15.0 sha384-9HfwFg8zLqX/oL9hvzKkQ5JuVOf5f0i2aOJ7clHis8/DLf8v05/Zz+On5xcWj0Ec
1.14.3 sha384-ftRS28t5Ioc66jZcOXPDU3UDMzXx8+7+5y3m4Nh8IUJTeKPP0/ZQVdjv63KfWZhF
1.14.2 sha384-SsXKAot3NVQ5pQDx2v5JMIdhXGC2abvSJw2SdZfMWpKawI2kcINgvORwd3N7IU9n
1.13.2 sha384-6Q+70Tb7VSTunHxR2/kKpNE52pf5aAqfo2gmo0lXKd7/kNrfQ6SpTl3BfH6EsEDn
1.13.0 sha384-gKsjOr9TSeDU1K49E3ALSUNw6/fWZLWeIyGHtLF73XUxWu5zaYLwr2bU8k93Vovy
1.12.0 sha384-0ytC+OalBIsyzqC9hFCR8Zfz1Es5oBpi6AUdAALFhHtRM2hhkPefSau77bewoCJY
1.11.1 sha384-Cl2Lek+zZbRpbSvn89RCiGD7/zIb/60RjoR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