From 580ebfad39e2abb13478e202ed32048e324b31d2 Mon Sep 17 00:00:00 2001 From: Marat Vyshegorodtsev Date: Thu, 2 Dec 2021 18:01:18 +0900 Subject: [PATCH] Fixed MIME type for public/cards.min.js (#13808) - This script does not load if `x-content-type-options: nosniff` is enforced due to wrong MIME type --- core/frontend/web/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/web/site.js b/core/frontend/web/site.js index 36549343b2..caff3376b0 100644 --- a/core/frontend/web/site.js +++ b/core/frontend/web/site.js @@ -112,7 +112,7 @@ module.exports = function setupSiteApp(options = {}) { // Card assets siteApp.use(mw.servePublicFile('built', 'public/cards.min.css', 'text/css', constants.ONE_YEAR_S)); - siteApp.use(mw.servePublicFile('built', 'public/cards.min.js', 'text/js', constants.ONE_YEAR_S)); + siteApp.use(mw.servePublicFile('built', 'public/cards.min.js', 'text/javascript', constants.ONE_YEAR_S)); // Serve blog images using the storage adapter siteApp.use(STATIC_IMAGE_URL_PREFIX, mw.handleImageSizes, storage.getStorage('images').serve());