Developers

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.chat/{version}/icf.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).

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:

icf.sdk.js

Version Subresource integrity hash
1.55.1 sha384-mPJTIJNy/yG+lDRUHfKkxwWBCFKc9dSoicp5XMcm07UmvFDpD7vJtkWKr98CVUDM
1.55.0 sha384-NBVkt/IGqFBaPxc1VOzQULq2sC16GPn2Jh3CcdLPOpERAwpohYovZ4D3HnGonAHk
1.54.0 sha384-DbEfoLiCoqbdsAKLE7263DHFdU+2rPWG7hZgFuylnecf0TTiRiNUCQi5Q1GdlyKk
1.53.1 sha384-8cLTKkEQ2vZyKrC+PpY9eQNbE0qmAJOwNXCdcxPw2cDWNGG0ASZL/Ja5oFz+lmTh
1.53.0 sha384-crWv/zQoZnJfAxCf4IFCwA/4Pb/iM7s80cLx+zzuITmrWlM6HBm0/I/QicrZRGor
1.52.0 sha384-IbxtDepYrkiS86kPXyzoRakoqB2uRC7FY17DD207ZQwQ450QW3k/LoRO+S50Py/2
1.51.0 sha384-KQISUjwFszEve7fkPgYNOUYJ9bvd0VNz2s9vfgW9HzocQJdYO3tUOo8aMR7iLJ7f
1.50.0 sha384-N+oLcnebFndPyEtljd7dl1uXyrAzuWiTUUK3iE5i2lZ1RePtMxD/Sd+o22wzgA+f
1.49.2 sha384-j/gzY1Wigp3iFfsoVLlnZn3+zvDHNg7Ruq/Cy+VmLwoEtx+/kVffaB+IiY5w6Xy/
1.49.1 sha384-BNPV5KBV+3bF7nXS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uV+0GXjWmbsc8Be6fReOiqUxwNCnBxkv3UsXp5
1.23.0 sha384-apjNWCPZwBkmLisWtv4+M3LJIkCPLf8USZz5nFrrOW9wnTx3ZF5ZWGPIZ1W1+MxP
1.22.6 sha384-zW8rdoUaI9Y8YuizvmtYJLEnwn5Iyt35zs5gcvsneM4n+6BKlz8TqHYkgjWqDnEd
1.22.5 sha384-Hq9j72/29WXLyF5uxqHfBh8tPClxqde1xGIGA+hEb4Ngj8ZdJ1k7j8KxuuNWtk70
1.22.4 sha384-F88YJiSpDdUsmxaV2ajp9i8yG8IyxFCBesCTSeyaLetngfN+ejsPr5hqLcufoWtO
1.22.3 sha384-skp5IFGJveim3vobFLHyyeEvUCDW599LlCsG9aZVsyFndP6LoLBVgtA15kuFpZvt
1.22.2 sha384-Nf9rImu+68wCjRnEM6lmfJE0PpEdcSqFbGbmW21DL0VQGHArI6Z9d9wMx9mNgyTH
1.22.1 sha384-oQBGwIhOkcvq9iOhWMpCg7CQwdhaHA14lw/sgoYLFHdgePD9VzDe6fjtolGh20ag
1.22.0 sha384-4S7kB4Wv3v7RHaO7iBpSQqZI3yWu60yH9Bh03OLudbvK6djI4sI3ngUwL8ivuBMR
1.20.0 sha384-wGJCQ23+IneOknkrz7VbdMkq9BN7jj43DNdXphzOSVNzfBDN/XkRP8+wjQzdsvoC
1.19.1 sha384-KcuuwdKp1OKMKg/vP4BaI3pJ7erIdu701sT3efPr4XHldvWo3JvAZyKiCiKgjvK7
1.18.0 sha384-FKCo8A0Ep2BkOpPPxegsknSIoxIir4iW3uv7tCxHuYf4Wexu86q+/63UL+mjzFo+
1.17.0 sha384-v2Ya8po7iknaNG+vmy77ovcOkFt8WaFeXvueV2cdDtrqrtETfbj7VvvSrW34dW25
1.16.1 sha384-trtaVovoKlR+l4wD2sha6GnyuBI2YIQKoZZXnWjM6a2LMEJrO02PlIuVXPaBFNxL
1.15.1 sha384-BwZCtBPQW74eNEQ93aPzIRle2eFcDML/NzxMnqEGL6HuqB0vl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h+vFpkF4+HLCIo1iWxlX77LYpn+idlbT186yWaietugo0I0ghEhFr0nPH
1.2.0 sha384-nz1+veHALleYsTAQUHN2ntttDAqw3BSmfi7AzefcOSc3NoYe0acCeqoVR787OTJM
1.1.22 sha384-6e+PuVKuq9az+4V4XxW1SKpO5dEIYph10Tt50lTbEUvrQvHjY9HMIVoS1XSglUqs
1.1.21 sha384-f1E/VDiVWdyzh8EqCL81uKkDaW9BQ6UObimRxN5NLMeZq3HUKcfqpnGFPfNx73Fv
1.1.20 sha384-a1qGYKj4L08qO7QQdZywNVYysc5MeIfVvnH/X/P1Sei+/oAGQTk8iA85ZIWajWrR
1.1.19 sha384-54aPl5AoZbkdKQHqB0apGjbtQay+1BBQ5YJclyWL4N//BAfJ7qN27OhTOrcKTUB2
1.1.18 sha384-bNc/+LX02OfS1mHeMlOkrdbtAmviAPFTOd7DqL15S4dec2n2Tiplj/lZNsrkIH+R
1.1.17 sha384-pP96PMQDDC2CykO3h5arDnuDQKEpRnqiYVltdZEtt4CAbAKG/AXiS0O/dPSLVBoL
1.1.16 sha384-Mhhk5io76+W3FQTcVJl3UOSvN2zmXvVaFZO+xrftifRhvHeNSiLzdyrokR8G6lnb
1.1.14 sha384-aJ2ElWmkIl3fIF6urh69Sfll8eFsPSoPCmKmxV9oWfTAJ0nbi4W3kyVxM17F0KzO
1.1.13 sha384-/imiTNwHh83RfChS3RUQ2DZtdTyrNNfDL8lNfk4v8xzbTY1Ypjzs56ziaflPbk6i
1.1.12 sha384-5VKilofvTVhAb2/fCT8Ld6ZGe5yysd4qnq7Wa1EVzQngVbMd7QZjMPEPMr3GTKkC
1.1.11 sha384-W9zoVHxp+HyqsrWLSJA7OsPZUSq0PuREWlJ1fVDsEDSnrXhE03shKrUm90hQ4CR+
1.1.10 sha384-X2Hu6dTcST8RSVG7ZTTDLsVv6U2tk1daVIm6FXFpA3kAgfqFa5Nv/GXLpstjd0P8
1.1.9 sha384-dyPXFnVRtODz1pUKkhT0nGDoVFNU0H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