Skip to content

Commit ebe371c

Browse files
committed
api: add Access-Control-Expose-Headers
XHR requests need this to be able to read our debug headers See: getsentry/sentry-javascript#839
1 parent 7c2bf1b commit ebe371c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/web/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def dispatch(self, request, project_id=None, *args, **kwargs):
159159
'Content-Type, Authentication'
160160
response['Access-Control-Allow-Methods'] = \
161161
', '.join(self._allowed_methods())
162+
response['Access-Control-Expose-Headers'] = \
163+
'X-Sentry-Error, Retry-After'
162164

163165
return response
164166

0 commit comments

Comments
 (0)