-
Notifications
You must be signed in to change notification settings - Fork 81
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
Send CORS headers for all requests #39
Comments
why enable CORS in those endpoints? we are using CORS for images in order to be able to read pixel image data for i dont know if i makes sense to use in other styles/metadata |
On Mon, Aug 13, 2012 at 10:03:19AM -0700, javi santana wrote:
With no CORS I don't get error messages when sending bogus styles when Not an issue if you hide port numbers behind a dispatcher. Do you see drawbacks to enable CORS ? --strk; |
my main concern is security here because you can run cross origin GET/POST. but dont worry too much about it, we only need to take care of it. |
On Mon, Aug 13, 2012 at 10:13:39AM -0700, javi santana wrote:
Yeah, we're indeed weak there. I suspect not all requests go trough the authentication phase. See CartoDB/Windshaft-cartodb#42 --strk; http://www.cartodb.com - Map, analyze and build applications with your data
|
a quick review reveals that we're indeed not checking any authorization for changing styles... Beside, if the problem exist, it is not really something you can stop by disabling CORS. |
I found out that CORS headers are only sent in response to tile request, not to style settings or metadata etc.
http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
The text was updated successfully, but these errors were encountered: