mirror of
https://github.com/bitwarden/browser
synced 2026-02-01 01:03:39 +00:00
* feat: ban urls not using https * feat: add exception for dev env * feat: block fetching of insecure URLs * feat: add exception for dev env * feat: block notifications from using insecure URL * fix: bug where submission was possible regardless of error * feat: add exception for dev env * fix: missing constructor param
10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
export class InsecureUrlNotAllowedError extends Error {
|
|
constructor(url?: string) {
|
|
if (url === undefined) {
|
|
super("Insecure URL not allowed. All URLs must use HTTPS.");
|
|
} else {
|
|
super(`Insecure URL not allowed: ${url}. All URLs must use HTTPS.`);
|
|
}
|
|
}
|
|
}
|