0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

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
This commit is contained in:
Marat Vyshegorodtsev 2021-12-02 18:01:18 +09:00 committed by GitHub
parent 894e1049fe
commit 580ebfad39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());