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:
parent
894e1049fe
commit
580ebfad39
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue