解决方案
在html文件中的head标签里面配置<meta htto-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'">
如图所示:
在electron中的html文件设置样式不生效
最新推荐文章于 2024-07-04 10:54:38 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)
解决方案
在html文件中的head标签里面配置<meta htto-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'">
如图所示: