I found my issue. The XMLHttpRequest error is showing that port 9000 is used. This needs to be specified in the SENTRY_URL_PREFIX.
SENTRY_URL_PREFIX = 'http://test.example.com:9000'
edit: I even found this answer listed in the FAQ: https://docs.getsentry.com/on-premise/server/faq/