tyles.css因MIME类型(“ text / html”)不匹配而被阻止(X-Content-Type-Options:nosniff)

时间:2019-07-19 21:50:06

标签: magento magento2

我现在更改了主机,遇到了css / js被阻止的错误(由于MIME类型(“ text / html”)不匹配而被阻止(X-Content-Type-Options:nosniff)),请帮助我

请检查给我错误的js代码

定义([

'jquery',

'mage/smart-keyboard-handler',

'mage/mage',

'mage/ie-class-fixer',

'domReady!'

],函数($,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();

});

0 个答案:

没有答案