-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with image blobs #12
Comments
I started out using it myself with image blobs and that worked. But I did discover an issue with XML-encoded images (SVG images, when I tried it), as per #1 I haven't really had a chance to look into what's causing it especially since I moved away from using image blobs in my own project where I'm using this module. |
I'm facing the same issue as @beshad mentioned. |
This might have been resolved as of version 0.3.4, I haven't had a chance to test myself yet, but give it a go and let me know if it works. Otherwise I'll keep #1 around to test and fix it. |
try this solution: |
Still happens! Kinda ruins the experience here. |
I was able to find a workaround:
|
hi, doesn't this library work with image blobs? my photos are store in DB using Gridfs and can safely show them using
<img [src]="_DomSanitizationService.bypassSecurityTrustUrl(thumb)">
but i get console error when i try this:WARNING: sanitizing unsafe URL value SafeValue must use [property]=binding: data:text/xml;base64,/9j/4QbwRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagE ...
and
unsafe:SafeValue must use [property]=binding: undefined (see http://g.co/ng/security#xss):1 GET unsafe:SafeValue must use [property]=binding: undefined (see http://g.co/ng/security
am i doing something wrong here?
thank you
The text was updated successfully, but these errors were encountered: