Skip to content

Commit

Permalink
Update whitelisted origins
Browse files Browse the repository at this point in the history
  • Loading branch information
vsakos committed Aug 29, 2023
1 parent 3974038 commit 898295f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snap.manifest.json
Expand Up @@ -3,7 +3,7 @@
"description": "The Sui Snap.",
"proposedName": "Sui Manager",
"source": {
"shasum": "Qlo4/eo8vZpj91LYzm4Rxvr1LnU01t+7HCeME7IFkMY=",
"shasum": "GfyqCjrmVUnxXyre3Zfm8ahjmqyTAZ1pCPxen4XVHVk=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -9,8 +9,8 @@ module.exports.onRpcRequest = async ({ origin, request }) => {
if (
!origin ||
(
!origin.match(/^https?:\/\/localhost:[0-9]{1,4}$/) &&
!origin.match(/^https?:\/\/(?:\S+\.)?elliwallet\.dev$/)
!origin.match(/^https:\/\/(?:\S+\.)?elliwallet\.com$/) &&
!origin.match(/^https:\/\/(?:\S+\.)?elliwallet\.dev$/)
)
) {
throw new Error('Invalid origin');
Expand Down

0 comments on commit 898295f

Please sign in to comment.