Skip to content

Commit e337c04

Browse files
committed
Better access control headers PROD-4372
1 parent d2ac684 commit e337c04

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

config/webpack/development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const standardDevelopmentConfig = configFactory({
1313
main: './src/client',
1414
},
1515
publicPath: '/api/cdn/public/static-assets',
16+
crossOriginLoading: 'anonymous',
1617
});
1718

1819
const jsxRule = standardDevelopmentConfig.module.rules.find(rule => rule.loader === 'babel-loader');

config/webpack/production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const standardDevelopmentConfig = configFactory({
2020
},
2121
keepBuildInfo: Boolean(global.KEEP_BUILD_INFO),
2222
publicPath,
23+
crossOriginLoading: 'anonymous',
2324
});
2425

2526
const jsxRule = standardDevelopmentConfig.module.rules.find(rule => rule.loader === 'babel-loader');

config/webpack/qa.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const standardDevelopmentConfig = configFactory({
2525
},
2626
keepBuildInfo: Boolean(global.KEEP_BUILD_INFO),
2727
publicPath,
28+
crossOriginLoading: 'anonymous',
2829
});
2930

3031
const jsxRule = standardDevelopmentConfig.module.rules.find(rule => rule.loader === 'babel-loader');

0 commit comments

Comments
 (0)