Skip to content

Commit a61db99

Browse files
committed
limit endowment:rpc to allowed origins
1 parent 7b2a08d commit a61db99

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/snap/snap.manifest.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/ChainSafe/WebZjs.git"
88
},
99
"source": {
10-
"shasum": "vO3LYrvRmoSsa2uNsztWS0JxFR67zZMNy9joDVxlptM=",
10+
"shasum": "iAfsbWYVP8O3rjK7Dp2FCpaoaeVaN7y5znqpVZ2c1nw=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -21,8 +21,10 @@
2121
"snap_dialog": {},
2222
"endowment:webassembly": {},
2323
"endowment:rpc": {
24-
"dapps": true,
25-
"snaps": false
24+
"allowedOrigins": [
25+
"https://webzjs.chainsafe.dev/",
26+
"http://localhost:3000"
27+
]
2628
},
2729
"snap_getBip44Entropy": [
2830
{

0 commit comments

Comments
 (0)