[Tile-serving] [mod_tile] Improve CORS support (#40)
Tom Hughes
notifications at github.com
Tue Aug 13 08:32:30 UTC 2013
This will fix #39 and cleanup a few other things:
* Only treat OPTIONS as preflight if Access-Control-Request-Method is set
* Only send Access-Control-Allow-Headers for preflight requests
* Don't send a bogus Access-Control-Allow-Headers value
There is a good flowchart at http://www.html5rocks.com/static/images/cors_server_flowchart.png showing how CORS should work on the server end.
You can merge this Pull Request by running:
git pull https://github.com/tomhughes/mod_tile cors
Or you can view, comment on it, or merge it online at:
https://github.com/openstreetmap/mod_tile/pull/40
-- Commit Summary --
* Improve CORS support
-- File Changes --
M src/mod_tile.c (18)
-- Patch Links --
https://github.com/openstreetmap/mod_tile/pull/40.patch
https://github.com/openstreetmap/mod_tile/pull/40.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130813/3c4307bd/attachment.html>
More information about the Tile-serving
mailing list