UserFeedback Form sends data to http:// Link on a https:// page

I have a sentry installation behind a SSL Reverse Proxy.

Everything is https:

Sentry/Django settings
$ sentry django diffsettings

Nginx Settings
# nginx conf reverse proxy
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

But sending the feedback formular gives an error, cause the form action is http.

Comes from the endpoint
var endpoint = /**/"";/**/'';

in the ajax response for:

the template part:
'endpoint': mark_safe('*/' + json.dumps(request.build_absolute_uri()) + ';/*'),
So it should django related

Bug or misconfiguration? Have I overseen a param?

Check your system.url-prefix option.

$ sentry config get system.url-prefix

My guess is this is http://.

No, this is https:

$ sentry config get system.url-prefix
    type: STRING
    from config: https://sentry.XXXXXX
    current: https://sentry.XXXXXX

any other suggestion? What else can I check?


Any suggestion?

Did you ever find a solution for this?

I solved this today by setting


in the .env and setting the X-Forwarded-Proto in the haxproxy.cfg:

http-request set-header X-Forwarded-Proto https if https sentry_host

Thank you :slight_smile: