Skip to main content
Question

Integrity value for preview.js

  • May 22, 2025
  • 3 replies
  • 17 views

Forum|alt.badge.img

I use "Box Content Preview" in my app, but I do not find the integrity value for this js

Where can I find it?

3 replies

Forum|alt.badge.img

Hi, 

Can you elaborate on what you mean by integrity value? Do you mean uptime? 

Alex, Box Developer Advocate


Forum|alt.badge.img

Hi,

If I want to import jQuery in my app, I can do it as the following code

<script   src="https://code.jquery.com/jquery-3.6.1.min.js"   integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ="   crossorigin="anonymous"></script>

You can see it has an attribute named integrity

 

But box preview.js does not support such value.

<script type="text/javascript" src="https://cdn01.boxcdn.net/platform/preview/2.81.0/en-US/preview.js" async="async"></script>
Could you give me some clues about it?
 

Forum|alt.badge.img

395005653353

for the HTML <script> integrity Attribute, you can get detail from https://www.w3schools.com/tags/att_script_integrity.asp

Could you give me some info to get the integrity attribute of preview.js?