When i am using sentry SaaS dsn key , it correctly logs all the errors on android , but when using self hosted dsn key thelogs ar egetting failed probably 403 or csrf related issue
Do i need to change anything on client android sdk for self hosted or Need to change anything on config side of hosted sentry
Main Sentry Issues:
- CSRF Verification Failed (HTTP 403)
The primary issue is that Sentry requests are failing with a 403 Forbidden error due to CSRF (Cross-Site Request Forgery) verification failure. The logs show:
Request failed, API returned 403
The transport failed to send the envelope with response code 403
- Missing Referer Header
The HTML error response indicates that Sentry requires a 'Referer header' to be sent by the client, but none was provided. This is a security requirement to prevent CSRF attacks. - Envelope Submission Failure
As a result of the 403 error, Sentry envelopes (which contain error reports, session replays, etc.) are failing to be sent to the server and are being stored offline instead:
Envelope submission failed
Adding Envelope to offline storage