Skip to content

Commit

Permalink
Starting to lock down the webviews permissions
Browse files Browse the repository at this point in the history
Relates to #22
  • Loading branch information
mountainash committed Mar 20, 2020
1 parent 2920830 commit eb5d894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mixcloud-play",
"version": "0.10.3",
"version": "0.10.4",
"description": "The Mixcloud desktop client",
"keywords": [
"music",
Expand Down
4 changes: 1 addition & 3 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Mixcloud Play</title>
<meta http-equiv="Content-Security-Policy" content="default-src mixcloud.com *.mixcloud.com; script-src 'unsafe-inline' 'self'; script-src-elem 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'; style-src-elem 'unsafe-inline' 'self'">
</head>
<body>
<div id="hud" style="display:none">
Expand All @@ -19,12 +20,9 @@
</div>
<webview
id="webview"
allowpopups
disablewebsecurity
preload="./preload.js"
src="https://www.mixcloud.com/"
partition="persist:mixcloud"
webpreferences="nativeWindowOpen=true;experimentalFeatures"
></webview>
</body>
</html>

0 comments on commit eb5d894

Please sign in to comment.