This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enforce async request redirect URL is in the snaps 'allowedOrig…
…ins' (#228) * Feat: added check for async requests to enforce redirect url is in the snap's allowed origins * Feat: created 'getSnapAllowedOrigins' private utility function and updated optional chaining logic * Feat: updated tests for validating async redirect urls and added checks for undefined * Fix: no allowed origin error message check in tests * Feat: updated allowed origins check to return empty [] instead of throw an error if undefined * Feat: updated not allowed origins redirect test to use helper function
- Loading branch information
Showing
2 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters