chrisben / imgcache.js

JS library based on the File API to cache images for offline recovery (target: cordova/phonegap & chrome)
Other
826 stars 216 forks source link

Rackspace CDN Cloudfiles #143

Closed vhuerta closed 9 years ago

vhuerta commented 9 years ago

Im trying to use this library with Rackspace Cloudfiles using the CDN but im getting this error

XMLHttpRequest cannot load http://f66aeee92e6b184cba3a-89a047f0e01b2380e61e9d1cc03b16b1.r37.cf1.rackcdn.com/wM8TPZnX4JcF5RfrK.jpeg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

Do you know any about this?

chrisben commented 9 years ago

This is because your CDN doesn't allow CORS for your localhost. This is something you seem to be able to fix within your rackcdn account: http://stackoverflow.com/questions/30067314/using-rack-cors-with-rackspace-cdn-issues#30103143

This problem has nothing to do with this library so I'm closing the issue here.

vhuerta commented 9 years ago

Yes i found that solution a couple days ago sorry for not close this issue before.

regards