我已经更改了主机,现在我收到css / js阻止的错误was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)
。请帮助我。
请检查给我错误的js代码。
define([
'jquery',
'mage/smart-keyboard-handler',
'mage/mage',
'mage/ie-class-fixer',
'domReady!'
], function ($, keyboardHandler) {
'use strict';
if ($('body').hasClass('checkout-cart-index')) {
if ($('#co-shipping-method-form .fieldset.rates').length > 0 && $('#co-shipping-method-form .fieldset.rates :checked').length === 0) {
$('#block-shipping').on('collapsiblecreate', function () {
$('#block-shipping').collapsible('forceActivate');
});
}
}
$('.cart-summary').mage('sticky', {
container: '#maincontent'
});
$('.panel.header > .header.links').clone().appendTo('#store\\.links');
keyboardHandler.apply();
});
这可能是因为文件的位置已更改。检查路径,并使用正确的位置更新样式的href
标签。
<link type="text/css" href="yourNewLocation/style.css">