CDN breaking SHA integrity

CDN breaking SHA integrity

thedavidfactorthedavidfactor Posts: 1Questions: 1Answers: 0
edited October 2019 in Free community support

I'm using this script tag:

<script src="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.js"
            type="text/javascript"
            integrity="sha384-b6lz7vBoPNFWulOisoJlEziEWnbO6TbeulJvmrmuro+kXqlUgmn+sVfASUlqVcZo"
            crossorigin="anonymous"></script>

It has started intermittently failing within the last day or so. I discovered I'm getting at least two versions of the file. The two that I've gotten differ in the following ways:

LINE 10: *   DataTables 1.10.18

vs

LINE 10: *  DataTables 1.10.18

A difference of one space.

On Line 163 starting at character 12 in one version it has build in the other it has builder

And in one version there's an extra newline at the end of the file.

Very minor differences, but enough that you get a different hash and therefore integrity checking fails.

Is this fixable?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @thedavidfactor ,

    I would've thought this would be due to the recent CDN update - see thread here. The only concern is your line:

    It has started intermittently failing within the last day or so. I discovered I'm getting at least two versions of the file.

    Can you confirm please whether you only get one version of the file now, the old being prior to the update.

    Cheers,

    Colin

This discussion has been closed.