Resource blocked due to MIME type mismatch (X-Content-Type-Options: nosniff)

后端 未结 14 1013
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 11:53

I am developing a web page using JavaScript and HTML, everything was working good when I have received this list of errors from my HTML page:



        
14条回答
  •  萌比男神i
    2020-12-13 12:13

    https://cdn.rawgit.com is shutting down. Thus, one of the alternate options can be used. JSDeliver is a free cdn that can be used.

    // load any GitHub release, commit, or branch

    // note: we recommend using npm for projects that support it

    https://cdn.jsdelivr.net/gh/user/repo@version/file

    // load jQuery v3.2.1

    https://cdn.jsdelivr.net/gh/jquery/jquery@3.2.1/dist/jquery.min.js

    // use a version range instead of a specific version

    https://cdn.jsdelivr.net/gh/jquery/jquery@3.2/dist/jquery.min.js

    https://cdn.jsdelivr.net/gh/jquery/jquery@3/dist/jquery.min.js

    // omit the version completely to get the latest one

    // you should NOT use this in production

    https://cdn.jsdelivr.net/gh/jquery/jquery/dist/jquery.min.js

    // add ".min" to any JS/CSS file to get a minified version

    // if one doesn't exist, we'll generate it for you

    https://cdn.jsdelivr.net/gh/jquery/jquery@3.2.1/src/core.min.js

    // add / at the end to get a directory listing

    https://cdn.jsdelivr.net/gh/jquery/jquery/

    ref - https://www.jsdelivr.com/?docs=gh

提交回复
热议问题