codesbiome / electron-react-webpack-typescript-2024

Electron React Webpack Typescript Boilerplate with Custom Window and Titlebar Menus.
MIT License
347 stars 78 forks source link

fix content-security-policy error #20

Closed ptlzc closed 2 years ago

ptlzc commented 2 years ago

if use different origin in video or image src props in env of webpack-devServer, the dev tools will error, this is because content-security-policy, add devContentSecurityPolicy to fix iit; (such as domain of devServer is localhose, but src is "https:google.com/xxx")