[Vuejs]-Vue-js Content Security Policy

-1👍

Let’s try this way.

Have you used the url-loader in Webpack?

If the answer is Yes, it’s will work when you remove the code that looks like:

module: {
    rules: [
        {// remove the block
            test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
            loader: 'url-loader',
            options: {
                limit: 10000,
                name: utils.assetsPath('img/[name].[hash:7].[ext]')
            }
        },
    ]
}

It’s will not refer the image use base64 when use file-loader to replace url-loader.

Leave a comment