dcramer/sentry — pull request #340 by bkonkle (2012-02-06 18:41:56+00:00)
Title: Access control

This adds the SENTRY_ALLOW_ORIGIN setting, which will set Access-Control-Allow-Origin and Access-Control-Allow-Headers on the /api/store/ url to allow cross-domain requests. This enables JavaScript cross-domain error reporting without having to deal with jsonp.

Setting SENTRY_ALLOW_ORIGIN to "*" will allow cross-domain requests from any domain.

Setting SENTRY_ALLOW_ORIGIN to a specific domain will only allow cross-domain requests from that domain.

https://developer.mozilla.org/En/HTTP_access_control#Simple_requests

This also fixes a minor bug in `_get_rendered_interfaces()` which will cause it to error out if there is a problem with interface.to_html(), since the `html` variable is not defined in that case.