Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I am creating a chrome packaged app and it doesn't allow external images. Only way is to make ajax and convert it to data-uri. They even have a library for it. https://github.com/GoogleChrome/apps-resource-loader

But how do i use/do it in angular js. How do i create a directive to do this. Anyway to convert image to data-url in angular js is welcome.

Chrome implemented the following policy value:

default-src 'self';
connect-src * data: blob: filesystem:;
style-src 'self' data: chrome-extension-resource: 'unsafe-inline';
img-src 'self' data: chrome-extension-resource:;
frame-src 'self' data: chrome-extension-resource:;
font-src 'self' data: chrome-extension-resource:;
media-src * data: blob: filesystem:;
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.