Skip to content
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

Remote distribution? (CORS-enabled Dropbox) #9

Closed
deathcap opened this issue Jan 17, 2014 · 6 comments
Closed

Remote distribution? (CORS-enabled Dropbox) #9

deathcap opened this issue Jan 17, 2014 · 6 comments
Milestone

Comments

@deathcap
Copy link
Owner

Currently, ProgrammerArt releases can be downloaded from https://github.com/deathcap/ProgrammerArt/releases for local usage. Would be cool if it could also be used remotely, i.e. online.

For https://github.com/deathcap/voxpopuli I include this repository as a submodule (git checkout recursive for development, and GitHub gh-pages also checks it out for the website). Other uses most likely have to include a local copy (unless they are only doing img src), due to cross-domain restrictions.

Maybe mirror the releases on a server which allows Access-Control-Allow-Origin: *, so remote XHR with .crossOrigin = 'anonymous' could be used to load PA.

http://www.w3.org/TR/cors/

@deathcap
Copy link
Owner Author

@deathcap
Copy link
Owner Author

deathcap added a commit to deathcap/artpacks that referenced this issue Jan 17, 2014
@deathcap
Copy link
Owner Author

Attempting to cache through http://coralcdn.org/ by appending .nyud.net, unfortunately it doesn't pass through the CORS headers:

XMLHttpRequest cannot load http://dl.dropboxusercontent.com.nyud.net/u/258156216/artpacks/ProgrammerArt-2.1-dev-ResourcePack-20140116.zip. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9966' is therefore not allowed access.

But, using the original Dropbox URL does in fact work remotely (is CORS-enabled). Updated demo URL in deathcap/artpacks@104fae3

@deathcap
Copy link
Owner Author

Testing using CORS with Dropbox is working well; planning on publishing there too for v2.1.
(GitHub releases, Curse, NPM, Dropbox)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant