You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/product/sentry-toolbar/faq.mdx
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,18 @@ useSentryToolbar({
50
50
},
51
51
})
52
52
```
53
+
</Expandable>
54
+
55
+
<Expandablepermalinktitle="Why is the Toolbar stuck saying 'Connecting to ...'?">
56
+
57
+
If you're seeing the message "Connecting to ...' in the Toolbar, it means that the Toolbar is unable to connect to the Sentry server. This can happen for a few reasons:
58
+
59
+
1. Check your browser console for a message like `Refused to frame 'https://my-org.sentry.io/toolbar/sentry/javascript/iframe/' because it violates the following Content Security Policy directive: "frame-src 'self'".` This means your site is not allowing the toolbar's iframe to load. To fix this you can add your sentry domain into the [`frame-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-src) directive in your CSP. The result would be a response header that says `Content-Security-Policy: frame-src my-org.sentry.io;`
53
60
61
+
2. The Sentry server is down or unreachable. If this is the case check the following:
62
+
- Check the [Sentry status page](https://status.sentry.io/) to see if there are any issues.
63
+
- If the Sentry server is down, you can try again later.
64
+
- If the Sentry server is unreachable, you can try again later.
54
65
</Expandable>
55
66
56
67
<Expandablepermalinktitle="Are there plans to include the Toolbar in the JavaScript SDK?">
You may also need to add your Sentry domain to the [`frame-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-src) directive in your CSP response headers. See the [FAQ: _"Why is the Toolbar stuck saying 'Connecting to ...'?"_](/product/sentry-toolbar/faq/#why-is-the-toolbar-stuck-saying-connecting-to-) for more information.
25
+
24
26
## 2. Install
25
27
26
28
If you are developing a React based application, it's time to add the Toolbar into your `package.json` file.
0 commit comments