I installed sel-hosted sentry and everything seems to be working fine, except from the API. I have overridden the docker-compose.yml file in which I add a reverse proxy. No matter what I do, I always get something along the lines of this:
07:44:50 [ERROR] root: CSRF failure for staff or superuser 07:44:50 [WARNING] django.security.csrf: Forbidden (CSRF token missing.): /api/1/envelope/ (status_code=403 request=<WSGIRequest: POST '/api/1/envelope/?sentry_version=7&sentry_key=7e988afcaab690228dcbf42f04ac6649&sentry_cli
I tried to excempt the API calls from CSRF:
SENTRY_WEB_OPTIONS: { "csrf_exempt_urls": ["/api/1/envelope/", "/api/2/envelope/"], "csrf_trusted_origins": ["http://lkebsentry.nl", "https://lkebsentry.nl"], "secure_proxy_ssl_header": ["HTTP_X_FORWARDED_PROTO", "https"] }
But this also does not work...
Any ideas?