How to get the integrity value for a jquery version for script

304
July 10, 2018, at 2:20 PM

I have this code from somewhere

<script src="https://code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script>

But if I want to use https://code.jquery.com/jquery-3.3.1.min.js in https://code.jquery.com/jquery/

how to get the corresponding integrity value for jquery-3.3.1.min.js?

Answer 1

Use https://www.srihash.org/ for generate link

https://code.jquery.com/jquery-3.3.1.min.js

generated as

<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
Answer 2

Is this something that you are looking for?

<script
  src="https://code.jquery.com/jquery-3.3.1.js"
  integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
  crossorigin="anonymous"></script>

I found this from here -

jQuery Core – All Versions

Rent Charter Buses Company
READ ALSO
404 error on post, but my server gets the data fine but does not return properly

404 error on post, but my server gets the data fine but does not return properly

I am trying to rewrite my login piece with Spring bootCurrently, my data is being posted fine and the backend is getting it, but my success function is not being fired

148
How to click on html element and have href change on each page refresh

How to click on html element and have href change on each page refresh

Can I write a script in python3 so I can click on this?

379
trying to add Href link in datatable cell [on hold]

trying to add Href link in datatable cell [on hold]

i am trying to clickable cell in the datatablenet

179
Datatable toggle in django app doesn&#39;t work on Chrome OSX

Datatable toggle in django app doesn't work on Chrome OSX

I have a datatable like which currently shows only the shipped items:

141