[OSM-dev] CORS headers on OSM tiles (for WebGL use)

Stefan de Konink stefan at konink.de
Sun Sep 18 19:45:01 BST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hey Steve,

Op 18-09-11 20:27, Steve Coast schreef:
> What are the other headers? I thought it was just the one
> mentioned.

It is browser dependant, firstly;

- - OPTIONS request should be allowed (if that results in a 405/503 =>
fubar)


Then the headers;

- - Access-Control-Allow-Origin: * ; Takes care of the 'real cross
domain stuff'

- - Access-Control-Allow-Headers: X-Requested-With,Content-Type ; Both
seem to be needed 'sometimes', in some browsers. And to give an heads
up: * is not accepted here.


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREKAAYFAk52PCwACgkQYH1+F2Rqwn12hACdE6J0wbSPaApOfwmL/dUPXe1t
Jw4An2JJYYxBGKY29rr8OeY8iGoy39Ia
=dpvZ
-----END PGP SIGNATURE-----



More information about the dev mailing list