1.使用require报错:
nodeIntegration: true, contextIsolation: false
<meta http-equiv="Content-Security-Policy" content="default-src; style-src ‘self‘ ‘unsafe-inline‘; media-src *;connect-src *;script-src * ‘unsafe-inline‘ ‘unsafe-eval‘;">
2023-11-01 12:47:40
1.使用require报错:
nodeIntegration: true, contextIsolation: false
<meta http-equiv="Content-Security-Policy" content="default-src; style-src ‘self‘ ‘unsafe-inline‘; media-src *;connect-src *;script-src * ‘unsafe-inline‘ ‘unsafe-eval‘;">