We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ebec23 commit 45c0426Copy full SHA for 45c0426
packages/react-scripts/config/webpack.config.prod.js
@@ -81,6 +81,10 @@ module.exports = {
81
// We don't currently advertise code splitting but Webpack supports it.
82
filename: 'static/js/[name].[chunkhash:8].js',
83
chunkFilename: 'static/js/[name].[chunkhash:8].chunk.js',
84
+ // Given Webpack supports codesplit and production bundles are using
85
+ // subresource integrity, it's important to make sure the attribute
86
+ // set on async-loaded chunks is set to anonymous.
87
+ crossOriginLoading: 'anonymous',
88
// We inferred the "public path" (such as / or /my-project) from homepage.
89
publicPath: publicPath
90
},
0 commit comments