rolandoam / ChesterGL

A simple and performant WebGL game library for 2D games
Other
105 stars 16 forks source link

CORS support #27

Closed rolandoam closed 12 years ago

rolandoam commented 12 years ago

textures loaded from external sites are not supported and they should: it is a very common pattern to put assets in a CDN like google storage (or s3 once they add support for CORS).

the asset loader should also detect if the path is absolute or relative, if it's relative, it should use the basePath (defaults to "") otherwise just the path, but add the CORS headers (origin) to the ajax request