Skip to content

Commit e6861cf

Browse files
authored
feat(feedback): Improve error message for 403 errors (#13441)
If the domain is not in `Allowed Domains` in the Sentry project settings, it would cause a 403 error. The default setting is `*` so this only occurs when the user changes these settings. Fixes #9856
1 parent b47de74 commit e6861cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/feedback/src/core/sendFeedback.ts

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ export const sendFeedback: SendFeedback = (
6464
);
6565
}
6666

67+
if (response && typeof response.statusCode === 'number' && response.statusCode === 403) {
68+
return reject(
69+
'Unable to send Feedback. This could be because this domain is not in your list of allowed domains.',
70+
);
71+
}
72+
6773
return reject(
6874
'Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker',
6975
);

0 commit comments

Comments
 (0)