Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/sourcemaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,20 @@ Alternatively, during source map generation you can specify a fully qualified UR

//# sourceMappingURL=http://example.org/js/app.js.map

Secure access to source maps.

If you want to keep your source maps secret and don't upload your source maps directly you can set the Security Token
option in your project. It will cause outbound requests matching Allowed Domains to have the header "X-Sentry-Token: {token}".
You can then check for this token in your web server.

While making source maps available to Sentry from your servers is the easiest integration, it is not always advisable:

* Sentry may not always be able to reach your servers.
* If you do not specify versions in your asset URLs, there may be a version mismatch
* The additional latency may mean that source mappings are not available for all errors.



For these reasons, it is recommended to upload source maps to Sentry beforehand (see below).

.. admonition:: Working Behind a Firewall
Expand Down