From 224138a880061e696e2719157e0ecf65c5be94ba Mon Sep 17 00:00:00 2001 From: mei23 Date: Sat, 13 Mar 2021 23:20:12 +0900 Subject: [PATCH] Use integrity for scripts hosted on the CDN --- src/client/assets/redoc.html | 2 +- src/server/web/views/docs-base.pug | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/assets/redoc.html b/src/client/assets/redoc.html index 9803464cb1..9605bc6e6e 100644 --- a/src/client/assets/redoc.html +++ b/src/client/assets/redoc.html @@ -19,6 +19,6 @@ - + diff --git a/src/server/web/views/docs-base.pug b/src/server/web/views/docs-base.pug index 4ba384bec7..aa7da43452 100644 --- a/src/server/web/views/docs-base.pug +++ b/src/server/web/views/docs-base.pug @@ -7,8 +7,8 @@ html(lang= lang) title | #{title} | Misskey Docs link(rel="stylesheet" href="/docs/assets/style.css") - link(rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/github.min.css") - script(src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/highlight.min.js") + link(rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/github.min.css" integrity="sha512-7QTQ5Qsc/IL1k8UU2bkNFjpKTfwnvGuPYE6fzm6yeneWTEGiA3zspgjcTsSgln9m0cn3MgyE7EnDNkF1bB/uCw==" crossorigin="anonymous") + script(src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js" integrity="sha512-zol3kFQ5tnYhL7PzGt0LnllHHVWRGt2bTCIywDiScVvLIlaDOVJ6sPdJTVi0m3rA660RT+yZxkkRzMbb1L8Zkw==" crossorigin="anonymous") block meta body