mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-26 20:31:33 +00:00
Fix Parent Origin Regex (#237)
* Fix Parent Origin Regex * Add another test case * Handle more cases
This commit is contained in:
@@ -17,5 +17,6 @@ function isValidOrigin(allowedOrigins: string[], event: MessageEvent): boolean {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
console.error(`Invalid parent frame origin detected: ${eventOrigin}`);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user