mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
prevent drag and drop of malicious scripts
This commit is contained in:
@@ -13,3 +13,7 @@ if (!isDev()) {
|
||||
}
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||
|
||||
// Disable drag and drop to prevent malicious links from executing in the context of the app
|
||||
document.addEventListener('dragover', (event) => event.preventDefault());
|
||||
document.addEventListener('drop', (event) => event.preventDefault());
|
||||
|
||||
Reference in New Issue
Block a user