wjx 1 tahun lalu
induk
melakukan
0408b16918
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      config/config.ts

+ 3 - 0
config/config.ts

@@ -6,6 +6,9 @@ import {  adMonitor, launchSystem } from './routerConfig';
 // const CompressionWebpackPlugin = require('compression-webpack-plugin');
 const { REACT_APP_ENV } = process.env;
 export default defineConfig({
+  metas: [
+    { httpEquiv: 'Content-Security-Policy', content: "script-src 'unsafe-inline' 'unsafe-eval' 'report-sample' 'self' *.alibaba-inc.com *.dingtalk.com *.alicdn.com" }
+  ],
   history: {
     type: 'hash',
   },