#Image CORS Class
- to deliver Images with CORS-Header for Server without mod_header.c It will allow any GET, POST, or OPTIONS requests from any origin.
In a production environment, you probably want to be more restrictive, but this gives you the general idea of what is involved. For the nitty-gritty low-down, read:
/* general */
require("class.CORSimage.php");
$image = new CORSimg('filename'); // can be jpg, gif, png, svgCopyright © 2013 Matthias Philipp. Licensed under MIT license.