Casey
Casey

Reputation: 184

PhoneGap Whitelist

I've got a PhoneGap v2.8 project that loads images and files from an external URL. I want to load the images into my pages inside PhoneGap. I'd like to allow all images, regardless of source, but using "*.png" in the whitelist doesn't seem to work.

I can't allow the entire domain where the images are stored because other files there I want to open in the browser. Or is there another way to force a file to open in the browser other than the whitelist?

Thanks in advance.

Upvotes: 0

Views: 276

Answers (1)

Casey
Casey

Reputation: 184

The domain white-list can't be used to allow a pattern like *.png. I had to override the behavior in code to force PhoneGap to allow all PNG files.

Upvotes: 1

Related Questions