Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi ! I\'m writing an app for google chrome. The problem is that when I install i

ID: 3690934 • Letter: H

Question

Hi !

I'm writing an app for google chrome. The problem is that when I install it on Google Chrome the external pictures won't work. For example if you run this app and change the login image header to external image link on internet it won't show.

I read google developer page and they said I need to add permision, but still doesn't show any external images

I uploaded the program on my google drive. Could you do a favor and take a look at it

link: https://drive.google.com/open?id=0B8doB9CHQlTALUhic1FONXRyTUk

Explanation / Answer

You can request external images using XMLHttpRequest and transform them into ObjectURLs. Then set the src attribute in the tag to each ObjectURL and it should work.you can use use cross-origin XMLHttpRequests to fetch these resources, and then serve them via blob URLs

you need permission in the manifest.json to all domains you will be XHR'ing to. If you don't know beforehand where those images will be hosted, you can ask permission for any url as follows:

Fetch the remote URL into the app and serve its contents as a blob URL:

this is what all i knew hope this helps,