Loader Script

Learn about the Sentry JavaScript Loader Script

The Loader Script is the easiest way to initialize the Sentry SDK. The Loader Script also automatically keeps your Sentry SDK up to date and offers configuration for different Sentry features.

To use the loader, go in the Sentry UI to Settings > Projects > (select project) > SDK Setup > Loader Script. Copy the script tag and include it as the first script on your page. By including it first, you allow it to catch and buffer events from any subsequent scripts, while still ensuring the full SDK doesn't load until after everything else has run.

Copied
<script
  src="https://js.sentry-cdn.com/examplePublicKey.min.js"
  crossorigin="anonymous"
></script>

By default, Tracing and Session Replay are disabled.

To have correct stack traces for minified asset files when using the Loader Script, you will have to either host your Source Maps publicly or upload them to Sentry.

The loader has a few configuration options:

  • What version of the SDK to load
  • Using Tracing
  • Using Session Replay
  • Enabling SDK debugging

To configure the version, use the dropdown in the "Loader Script" settings, directly beneath the script tag you copied earlier.

Note that because of caching, it can take a few minutes for version changes made here to take effect.

If you only use the Loader for errors, the loader won't load the full SDK until triggered by one of the following:

  • an unhandled error
  • an unhandled promise rejection
  • a call to Sentry.captureException
  • a call to Sentry.captureMessage
  • a call to Sentry.captureEvent

Once one of those occurs, the loader will buffer that event and immediately request the full SDK from our CDN. Any events that occur between that request being made and the completion of SDK initialization will also be buffered, and all buffered events will be sent to Sentry once the SDK is fully initialized.

Alternatively, you can set the loader to request the full SDK earlier: still as part of page load, but after all of the other JavaScript on the page has run. (In other words, in a subsequent event loop.) To do this, include data-lazy="no" in your script tag.

Copied
<script
  src="https://js.sentry-cdn.com/examplePublicKey.min.js"
  crossorigin="anonymous"
  data-lazy="no"
></script>

Finally, if you want to control the timing yourself, you can call Sentry.forceLoad(). You can do this as early as immediately after the loader runs (which has the same effect as setting data-lazy="no") and as late as the first unhandled error, unhandled promise rejection, or call to Sentry.captureMessage or Sentry.captureEvent (which has the same effect as not calling it at all). Note that you can't delay loading past one of the aforementioned triggering events.

If Tracing and/or Session Replay is enabled, the SDK will immediately fetch and initialize the bundle to make sure it can capture transactions and/or replays once the page loads.

While the Loader Script will work out of the box without any configuration in your application, you can still configure the SDK according to your needs.

For Tracing, the SDK will be initialized with tracesSampleRate: 1 by default. This means that the SDK will capture all traces.

For Session Replay, the defaults are replaysSessionSampleRate: 0.1 and replaysOnErrorSampleRate: 1. This means Replays will be captured for 10% of all normal sessions and for all sessions with an error.

You can configure the release by adding the following to your page:

Copied
<script>
  window.SENTRY_RELEASE = {
    id: "...",
  };
</script>

The loader script always includes a call to Sentry.init with a default configuration, including your DSN. If you want to configure your SDK beyond that, you can configure a custom init call by defining a window.sentryOnLoad function. Whatever is defined inside of this function will always be called first, before any other SDK method is called.

Be sure to define this function before you add the loader script, to ensure it can be called at the right time:

Copied
<script>
  // Configure sentryOnLoad before adding the Loader Script
  window.sentryOnLoad = function () {
    Sentry.init({
      // add custom config here
    });
  };
</script>

<script
  src="https://js.sentry-cdn.com/examplePublicKey.min.js"
  crossorigin="anonymous"
></script>

Inside of the window.sentryOnLoad function, you can configure a custom Sentry.init() call. You can configure your SDK exactly the way you would if you were using the CDN, with one difference: your Sentry.init() call doesn't need to include your DSN, since it's already been set. Inside of this function, the full Sentry SDK is guaranteed to be loaded & available.

Copied
<script>
  // Configure sentryOnLoad before adding the Loader Script
  window.sentryOnLoad = function () {
    Sentry.init({
      release: " ... ",
      environment: " ... "
    });
    Sentry.setTag(...);
    // etc.
  };
</script>

By default, the loader will make sure you can call these functions directly on Sentry at any time, even if the SDK is not yet loaded:

  • Sentry.captureException()
  • Sentry.captureMessage()
  • Sentry.captureEvent()
  • Sentry.addBreadcrumb()
  • Sentry.withScope()
  • Sentry.showReportDialog()

If you want to call any other method when using the Loader, you have to guard it with Sentry.onLoad(). Any callback given to onLoad() will be called either immediately (if the SDK is already loaded), or later once the SDK has been loaded:

Copied
<script>
  window.sentryOnLoad = function () {
    Sentry.init({
      // ...
    });
  };
</script>

<script
  src="https://js.sentry-cdn.com/examplePublicKey.min.js"
  crossorigin="anonymous"
></script>

<script>
  // Guard against window.Sentry not being available, e.g. due to Ad-blockers
  window.Sentry &&
    Sentry.onLoad(function () {
      // Inside of this callback,
      // we guarantee that `Sentry` is fully loaded and all APIs are available
      const client = Sentry.getClient();
      // do something custom here
    });
</script>

When using the Loader Script with just errors, the script injects the SDK asynchronously. This means that only unhandled errors and unhandled promise rejections will be caught and buffered before the SDK is fully loaded. Specifically, capturing breadcrumb data will not be available until the SDK is fully loaded and initialized. To reduce the amount of time these features are unavailable, set data-lazy="no" or call forceLoad() as described above.

If you want to understand the inner workings of the loader itself, you can read the documented source code in all its glory over at the Sentry repository.

Because the loader script injects the actual SDK asynchronously to keep your pageload performance high, the SDK's tracing functionality is only available once the SDK is loaded and initialized. This means that if you e.g. have fetch calls right at the beginning of your application, they might not be traced. If this is a critical issue for you, you have two options to ensure that all your fetch calls are traced:

  • Initialize the SDK in window.sentryOnLoad as described in Custom Configuration. Then make your fetch call in the Sentry.onload callback.
    Example
    Copied
    <script>
      window.sentryOnLoad = function () {
        Sentry.init({
          // ...
        });
      };
    </script>
    
    <script
      src="https://js.sentry-cdn.com/examplePublicKey.min.js"
      crossorigin="anonymous"
    ></script>
    
    <script>
      Sentry.onLoad(function () {
        fetch("/api/users");
      });
    </script>
    
  • Use the CDN bundles instead of the Loader Script. This will ensure that the SDK is loaded synchronously, and that all your fetch calls are traced.

Sentry supports loading the JavaScript SDK from a CDN. Generally we suggest using our Loader instead. If you must use a CDN, see Available Bundles below.

To use all Sentry features, including error monitoring, tracing, Session Replay, and User Feedback, you can use the following bundle:

Copied
<script
  src="https://browser.sentry-cdn.com/10.8.0/bundle.tracing.replay.feedback.min.js"
  integrity="sha384-Yy2UXIFrWRfe56w1BuJ8/pgltHwWyYP4Q7dYKueJ/c6RG8B/bPJmGv+TBTQSuTSv"
  crossorigin="anonymous"
></script>

To use Sentry for error and tracing, you can use the following bundle:

Copied
<script
  src="https://browser.sentry-cdn.com/10.8.0/bundle.tracing.min.js"
  integrity="sha384-TR8N680qOm0pCmrHg2oG0fjpZYcpLanuLrMZck1DTR0NnaJjnqAPuCPI7pMJRmFp"
  crossorigin="anonymous"
></script>

To use Sentry for error and tracing, as well as for Session Replay, you can use the following bundle:

Copied
<script
  src="https://browser.sentry-cdn.com/10.8.0/bundle.tracing.replay.min.js"
  integrity="sha384-o9UXGQbKb76G6UNZasN50E5922I6aQx9CSzbN02knpjeqhcgl2Vi8SAlCUEqIa+0"
  crossorigin="anonymous"
></script>

To use Sentry for error monitoring, as well as for Session Replay, but not for tracing, you can use the following bundle:

Copied
<script
  src="https://browser.sentry-cdn.com/10.8.0/bundle.replay.min.js"
  integrity="sha384-1GmBZYPjprz8SnHRHngR1vD+kITPuIuD2nPPHl66G7GTcwvrO18vK9IR5BsYRung"
  crossorigin="anonymous"
></script>

If you only use Sentry for error monitoring, you can use the following bundle:

Copied
<script
  src="https://browser.sentry-cdn.com/10.8.0/bundle.min.js"
  integrity="sha384-OeXjkPMDAnxIgoEIBDnXWKhce+ctYZHJjn+VcfoEzUIV/YPFgf5sPIMT6Fr68nfq"
  crossorigin="anonymous"
></script>

Once you've included the Sentry SDK bundle in your page, you can use Sentry in your own bundle:

Copied
Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0
example-org / example-project
"
,
// this assumes your build process replaces `process.env.npm_package_version` with a value release: "my-project-name@" + process.env.npm_package_version, integrations: [ // If you use a bundle with tracing enabled, add the BrowserTracing integration Sentry.browserTracingIntegration(), // If you use a bundle with session replay enabled, add the Replay integration Sentry.replayIntegration(), ], // We recommend adjusting this value in production, or using tracesSampler // for finer control tracesSampleRate: 1.0, // Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/], });

Our CDN hosts a variety of bundles:

  • bundle.<modifiers>.js is @sentry/browser with error monitoring only
  • bundle.tracing.<modifiers>.js is @sentry/browser with error and tracing
  • bundle.replay.<modifiers>.js is @sentry/browser with error and session replay
  • bundle.feedback.<modifiers>.js is @sentry/browser with error and user feedback
  • bundle.tracing.replay.<modifiers>.js is @sentry/browser with error, tracing and session replay
  • bundle.tracing.replay.feedback.<modifiers>.js is @sentry/browser with error, tracing, session replay and user feedback

Additionally, each of the integrations in @sentry/integrations is available as a bundle named <integration-name>.<modifiers>.js.

Since v8 of the SDK, the bundles are ES6 by default. If you need ES5 support, make sure to add a polyfill for ES5 features yourself. Alternatively, you can use the v7 bundles and add the .es5 modifier.

Each version has three bundle varieties:

  • minified (.min)
  • unminified (no .min), includes debug logging
  • minified with debug logging (.debug.min)

Bundles that include debug logging output more detailed log messages, which can be helpful for debugging problems. Make sure to enable debug to see debug messages in the console. Unminified and debug logging bundles have a greater bundle size than minified ones.

For example:

  • bundle.js is @sentry/browser, compiled to ES6 but not minified, with debug logging included (as it is for all unminified bundles)
  • bundle.tracing.debug.min.js is @sentry/browser with tracing enabled, minified, with sdk debug logging included
FileIntegrity Checksum
browserprofiling.debug.min.jssha384-OOiiDG/2x/L0+Hln+TdpL4kwuF8DBTlBUMtvNrfavxF07iFE4FoUleHM17EyMnD+
browserprofiling.jssha384-dPZjqXfAKBeRODssNo81dMiVE3UXo3nccccDC23f3GJH2gxSyyvXQ1EC2hDS7V5L
browserprofiling.min.jssha384-dy9CiV0hLnZYY0eXARLa0XDqKaesg3N78anEdDrubI2RSOdJxiyn9xqP+FhVGw7Q
bundle.debug.min.jssha384-KscXgxlN/d/OgvhTVHRtgct5o38UfwKeMBrheYrz5YY7158gGKfXsQ4lDNlKh9Un
bundle.feedback.debug.min.jssha384-a0CBS2Sa0t3m2R3Ja8WbvOE8xncj4akY6VTrbF6h4gEUJT8uxNR3JJJ5wMlQ4HbN
bundle.feedback.jssha384-moeAtpf5L3d2uLKrkW3yWgr2iDCUPuYbHli/e6O/0qISq9PsVHBiS4tTaswuZQch
bundle.feedback.min.jssha384-WaFWQTppo7N4/EZaj5wXn+ddxYELX/m26NFChu7f7831qhOBbibOXEPEpHmjjIk4
bundle.jssha384-Oq3ovVVgoTl35sSPWmEAPQwxnNGsa0aLiSzTaRuZ8JXhUEsVbVluK6cieCdXkMOv
bundle.min.jssha384-Pnd45LsRmeMFgPVPUskbzrMoZOE+c/R6O93JhYUOMMr/mNgF1g+BXBwgzKHX0kdX
bundle.replay.debug.min.jssha384-pH26jkqgUC5S9qABVLSpk2DpDsLxW7Dk4FuQcCRWCDtFpNlyQXirLbbzhtvw8X4G
bundle.replay.feedback.debug.min.jssha384-PD9ewJEigmhg4BWNPRqULGZoWZESwxLf1Y3S3f7/J2SIF64+KCrmgQxvH98HSkPN
bundle.replay.feedback.jssha384-KzhNfXQ6BC9WHCuGu1fZFiVi4Em0BXqjEtoov4rII4PC6kIKFxf4wC860yALNmkO
bundle.replay.feedback.min.jssha384-Yt7Ux7QhXTq7bMB1LsSQj8rOowwZwda4P/zRNqCPWcSFabtOC0zwV9Grxkmksgcw
bundle.replay.jssha384-vmHc7VYLmnvdh9oQ2vJ7xTBSancrWOiim4XxqNjhTZ3FULg+z/1rs0Ikf9uZIfTB
bundle.replay.min.jssha384-pcfDtBQQ2YbFqZOSPzEhBQZKTJXB50+SypVWY7ru6UXWyr9CWj3bw7rI3I518q7j
bundle.tracing.debug.min.jssha384-Ih7aFc2fmBmZYXTGLZ8L6aUpr47ujb9Hs13tPd9wYO3/gR8817kUqPzehmMut0Mg
bundle.tracing.jssha384-1YpN4pddYNB7MeeeZiN/FHBaa6F9GHIUilkGCNx93k03BiwMbyeH7KcwA3wRkhKn
bundle.tracing.min.jssha384-qd3iHGML/VAY0rXMGIO8bDOwrBD58Cair0RhA5VB+n05GR9hxq8X8GuobyuJeV8A
bundle.tracing.replay.debug.min.jssha384-Y2VXfRxPpm5d3kjSVudiMVgS649PeYWTuLXPVqg/UvXVgQmPn9kCPegq2LfBZuEj
bundle.tracing.replay.feedback.debug.min.jssha384-r3itVsG1KDdgQzMg5Ov9gU7nJUylUsMH7wkuOvYXlPykD5/kaUf0QNtbsL/Qj3OR
bundle.tracing.replay.feedback.jssha384-49LPrlZHtC/+DjpEDNtgy8DbofvHqsJveBy539mPa/kwXEFKEwsBH0egOlk9TxLL
bundle.tracing.replay.feedback.min.jssha384-p6Z7G/+SLpp7DG+SVaS1MsB0rxOf5s8pXhB0t1zLwhbY75hQai/FhMgo7jlTf/H8
bundle.tracing.replay.jssha384-2wqVfexG7dGXImpCWtY54wlUmRnXdqr26J3eR1TpKOOyxDspCFA5AUNB08EpD+nd
bundle.tracing.replay.min.jssha384-Bi6kv5Jyfi7OO2FMkfo0tcZHrOwRU8avu2ZwSvSbPnldZg7w5CrwEFeobhARjO00
captureconsole.debug.min.jssha384-6A1llqikU4SwCudhdYBbvvG+ltbbKvhjqwxBzZIwOF4Jgd3+m2jZJlQ9FbCEp6mV
captureconsole.jssha384-91i9tJCW+zEKwMJXe3cyMYH6miF+xE8z6C/emGWdcwRYumxsr2TlHddGbyGwmUH+
captureconsole.min.jssha384-Xnk99m7Cw+M+VrDCMVutXuOa0DY/QKJXuh9ROjO2vQ9jh4f/F3lou5KHoCDp+aVJ
contextlines.debug.min.jssha384-hf9Xyn67Yo6iePdN2K/GrPOIRe2G+8VSx9wcKDOEAAzVqE1J3bAr1AKRi1s5M1vX
contextlines.jssha384-fJKdZnUGBoxSiE8QZrbMbUkMg+WPm0K9wgzKOOWyziYyzVh7l3LpcFwLja3d8KWc
contextlines.min.jssha384-CrJIbn6ii8BuHB7RuL2+Iuxdj6rwGC4tSAP6bvPk5TNelfzCHOqU/tz+rL4MHkI3
dedupe.debug.min.jssha384-0m5OFcfuYDsKUfU5B3U41j4HJ5H7Mibv6MVioFzM0Vb87Z1bNqL7yhNMxao1SC2g
dedupe.jssha384-JVmAz08hDHyC+lOij+VuSVMJkAqYey4HedICOST0WelUQvVl3pNFo0aSPEfH6u/4
dedupe.min.jssha384-jkiRcl3WpYDcR4F8pHSqDGb2XPJnu5ubYQjdD6XAmzFKsiTLDmmrrTE3DXI3Xw+2
extraerrordata.debug.min.jssha384-qfe4xd12LowF1hOt+LPYXesjZVtSvZo7JltD04dWS3MslP81DZ7+eq7krhvdUqVs
extraerrordata.jssha384-j7uLrIAAZOB2kSm7WBq3PaEttbOEKkKTdAHAtNd1LDlOR2HASj9bihBMyLJXxawQ
extraerrordata.min.jssha384-NhWG6fCRWFT50zirTN+Cl1Q51LDv2BrDkoifWUOqxn+WM7nkljdwCyzJ4f5U+fwK
feedback-modal.debug.min.jssha384-nm23s0BUsrOImKS9fgVvnHY/TocR8pAuOnKfsK11/nil9sKBh42zhsWcMKbf2YDv
feedback-modal.jssha384-pX8rL62oxxEnzT/DIMMoIIwl0eJlGhHQ5v5Av24XIKQ8YeeTDR99p/Ggb4ZcbYaj
feedback-modal.min.jssha384-virQeQApquIvcrIg7hqPi3H4bw2JOSpvSYxxtRzecoM/C+z8exFlbiUgFOB0e3mA
feedback-screenshot.debug.min.jssha384-L46n3hzUDgL55pnxJiXmaGJj/HMvpZCrT+DwldZks5luIrNH9pxAd7awQ2EZKgFK
feedback-screenshot.jssha384-Pzu6N7T+BPh4aAFaiRvnMvzRcJESWXVVib1mVdEYQNF70jSFKkMf+/IfKZI5O4Wd
feedback-screenshot.min.jssha384-njQGsTjQIPtU5prtCk9u3RjFPcxTI3Xc3VXXJvjeo5rDvllzbPuxQSoZx1I0RmCl
feedback.debug.min.jssha384-jb4Nmn5Bcie5P/dCnqV4l/SzlzGzzZP0JptMOB1TRqHH/ldK6wX8iSzCixzEl2hC
feedback.jssha384-/wPPe1deZg23kurPG4UXBdWZ8NBGao4gHXe1/PvvNQQh0bhaIV4vO01gIafUe4D3
feedback.min.jssha384-xr+MuORqhoT4hDcSNKlSv6ezpsqFtpSh26CNtMc2WsnsoW0ECw/KSPVXuwMoG/BC
graphqlclient.debug.min.jssha384-Vt14fd/vQDDhyjRcm6v8N0ZWM/Z96F0ri7XKJNr9y+Ukp1VTlVAgAi02H9F6Fcw4
graphqlclient.jssha384-/bAkXbzowxy9yAYhY9s5krdrR2NwJ788NwagFCjcQMyi9BGVuaPBO91tLt9UlZUt
graphqlclient.min.jssha384-hPlRH6iChIXPLuGoMVX+z2jjlNDW3vlDFHB13e2YQaFTG1t0qsbVEw0uSgnvJvOJ
httpclient.debug.min.jssha384-beWCu6JpeoHaKSQUZm4uHpTfplx5g53NcC5QgxmuYAan5wNIKqcUvNicMxXu/QIC
httpclient.jssha384-H2vKUH5tXt4tP0Zs5quiRc7QoPC2BLCHDf/lTQDPDpRUrMIVAQNCWx/yZJm1GXC3
httpclient.min.jssha384-jtsXQB2CAbPVJBKS6tquZH9DLKtnoeZEktuAJtjRYuzzfd05dxc2emFWnqO0/2lA
modulemetadata.debug.min.jssha384-dEteYzw4b+vM+d9Cn2DotyyeZl/5ro0Qel+e6MMuDJ1OvxozBgV28t4ogahknHmi
modulemetadata.jssha384-JGyHd30M6fwoJ380wqyxJVKPChUcEpBwUi/Nkdfn9Vof6tSf3vWyGYUd3xnF0TBb
modulemetadata.min.jssha384-yE754Sfq3UVdLDp8LccCdYoUzNH8E0xngXDe03qvSPL6GUZwC7CU1v87hLupkquf
multiplexedtransport.debug.min.jssha384-uha5srtC56ydiu+IhYgSXRfEgkXS5b4msOvldi0t5Yrb1sd18nupKwobbD/61QuZ
multiplexedtransport.jssha384-m8tCgv5ZaZqou+tb8GbBkse/Q9Gf3fDJHXaVXMt7SBWGrg8hQhWbtgdolb/GW5Gi
multiplexedtransport.min.jssha384-9KQvvx2QM2pwYyMqY/0m4nZD1ZasBmVc0a6+yYrQrWTTcJGvPP7buTuWIcSvt9SH
replay-canvas.debug.min.jssha384-1ETNnPaeHFuog+XmZmArDiOki7oPdqkiXM8heidbeN4OfEKYoI8ligBXPPe2BEhQ
replay-canvas.jssha384-6qjEW2y+olTvHmdUpD9o36X8QZNFDwnxI5phW2PalktvrYlOC4EVFmvZG4QX6GNb
replay-canvas.min.jssha384-rb0MRRzs1f02SAFfO9jj9XelOmH3Rg8UsV7PNeCmBCqF6tjaIjw2uM1a8WruRXLD
replay.debug.min.jssha384-vgtg7sL4t3afveFcEfL3fDHo70oiczh4+wctXiqLE/FSxbImaZMQywwDOQJc9LYT
replay.jssha384-trLtlFHg0HpMsAVCMGk0liVn/MoQYJtB7eM3OKdo5HnhWdAqVtdsLBKIDx3u/EHx
replay.min.jssha384-Big97RpOo3quYKFwZNNdvmvddwd5VVXXUt1W/DWDKdQl6Vh99p42/+EAmZPsGCOa
reportingobserver.debug.min.jssha384-RLT7euk2DZckVoGQgokryRZ3wdKW7Y5v+H1cm7ntjmcmIr7EnqnNWv0X0TWn7PHk
reportingobserver.jssha384-v6uyRlqvPxHrVH8QxuaeP24FPwBuyCsh+Lro69naGFE/c5Ne9GbjOptw0f8Pf6Ro
reportingobserver.min.jssha384-Sk+z+HOh6rIftNtBGryqcbVKMkx6o8x1rT12z+rJJnQSh/oHA8h5rUhejWaPCh6P
rewriteframes.debug.min.jssha384-89FRGyNPKoiv4ICvfVmZGQLHy3nIpQ3zzKHhkUaUf7E1CiacHM2mE6n6yBcN7j5a
rewriteframes.jssha384-WFfg5r+vbBn5gVnFzGpFixo0UWPEu4vkaqKgP0LanoYmrqjan6cXeTrjZQNr6K/O
rewriteframes.min.jssha384-5k/XpVV62HfRNfUQn69c0PIiTz8Lc9MjeUelg8lR1ExI3SwiwVoEgheCZyu9ISbJ
spotlight.debug.min.jssha384-ndVe6K+ifm8pGyWJdhKs00eyakvi1yB1RfhULZCFR4IOPY7nJVqjrz4S8OLFdmMQ
spotlight.jssha384-/OO+PP4ciNK+fwqS+DdwUxy9dHNS1S077HwWRqi8rqICTAHxbtijJhlEfcrzYeLn
spotlight.min.jssha384-xKxIz1sthS+yKA9KNGwJZU9KEdniEK8BfmOBbpK3xwWtz6urd8Z1S+G+daK7uo+6

To find the integrity hashes for older SDK versions, you can view our SDK release registry for the Browser SDK here.

If you use the defer script attribute, we strongly recommend that you place the script tag for the browser SDK first and mark all of your other scripts with defer (but not async). This will guarantee that that the Sentry SDK is executed before any of the others.

Without doing this you will find that it's possible for errors to occur before Sentry is loaded, which means you'll be flying blind to those issues.

If you have a Content Security Policy (CSP) set up on your site, you will need to add the script-src of wherever you're loading the SDK from, and the origin of your DSN. For example:

  • script-src: https://browser.sentry-cdn.com https://js.sentry-cdn.com
  • connect-src: *.sentry.io
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").