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-Ags3nlrzf3C2QOb/xOgprMOa0DLuagKXk/z70kpkK1lvtoLtwjVyly8BT28cHasm
browserprofiling.jssha384-EWpC6nUig2QEom2xLqbbEn+IR2zvkmYqbFMQ4a46WtFEUFkk2m/DxBaTtdUsSvDs
browserprofiling.min.jssha384-m5TKYOA8NNt5cSwbUDiiD0YYf+Chcfdf10MjxfORfwbpGCmhgC2wey8tFXsNWkdd
bundle.debug.min.jssha384-hfQWD6gSglSb9MTVN+d9HNCpTEa0DdlBfsS9lejUu+nrBENdIFoJGlaFR/jd2M7a
bundle.feedback.debug.min.jssha384-juhStnOJx93xTrXX0zNlFtu6Bzea+c/Ir5NVdb4jAuUXDc5916cPkMNUNoKv00Jr
bundle.feedback.jssha384-0YCZJayDJtABvVa8fxFG5yKt2qY9LGLSQTspqbbX5Oc6ahQXIcpb5afXHPMJNXbo
bundle.feedback.min.jssha384-2j50lt10ApKnJIZMlvQebvhRaDClfRrByQwKgiKTX5vmw7+6DXU9n+FthrO2WWDe
bundle.jssha384-qT2tOf9SjvEXKXaO/KeItb2LvB72CJTcNt9PhCph1nzEA3hicrbONa1RlXcAAsVg
bundle.min.jssha384-zIS0uRnbT9YUIYZb7zoHnpjl5ypRmjc47yWSgs2ZG5xqzvE0hzuFP4PnUpD7pgAB
bundle.replay.debug.min.jssha384-fM60zavVYCrOu7me+ajK0nVmtRsR3TlEqma7C9iZbsEYHs0lmhg8Be9Q6sYFHorf
bundle.replay.feedback.debug.min.jssha384-FryNFWxvxHdJVwQqcn0/4mJM/7rl8XqqNSzrtVfcGvVTph3CZQajFFKjWQ92m5Pg
bundle.replay.feedback.jssha384-rsz6z9pAkN9LiGH/VkxwJzwVZ6OTA7WpxIlSHQ7EzwRgDD/1MS3l8BKqsm0g3IcU
bundle.replay.feedback.min.jssha384-6wVaKq2pa8Vbm1KPh/UGOXz+RR4f8+4hvOh7snNGXTvFEmsOz+wNG2Pv4wMlJ5Nd
bundle.replay.jssha384-itTbXm2dS1JkWryDLiarCMDuTlXwbxpRKpEhRJB3wP3SRvB5wB9u282BVNlovkyI
bundle.replay.min.jssha384-EUjDECMTigBmAkEj9U2WDzNzWSZq60leFmlDtHkywTyTujaN6apu0Wma5TiJAkgE
bundle.tracing.debug.min.jssha384-XxNuS1umDEY2ehFJM03mTt2pUXL8Y+SfJVaqeACBGk6B2W0u5MXRuiGrLMYLZZyj
bundle.tracing.jssha384-UCk83R3Yn2tD4RRZG6FOoHje6mBir4j432HWdGhgRnStx5Dv0HY7hZrYcb5LngrX
bundle.tracing.min.jssha384-0Z7v6KqK4dZCbycNddzK4OXo2gSrjGA5SJd7r8azADmH6FBAHon5pzVqeDNEPem8
bundle.tracing.replay.debug.min.jssha384-dc3Km0OedPQ5ggM+KDUn3pVLgWNguVbCwKxR2r6BfsyqrP7/GdcF1io7x0nEOqe2
bundle.tracing.replay.feedback.debug.min.jssha384-sc9xUXZRxnssGQbmZ8kFuXd3dNF7rkPMBLHkeveobx95Oc9U828BNKp0ZRujaKgf
bundle.tracing.replay.feedback.jssha384-ZB35ZJ6k8Hw5v9a8ZzK2LmHeiSsM5jBhzWqv92l+mRVl/Q4JbzxkXi4v5A/wUJlJ
bundle.tracing.replay.feedback.min.jssha384-yaLXBcFtL5Kx+6XXd9rWqu+HU+2vdXwC+Ip8TgYbGGG4K8zv1FDyyedkJ5EIKAfr
bundle.tracing.replay.jssha384-nApd+tBGYO0ofYnS6pQkXcGnpnNbDe4N1sVbO+rN/lSxH7/8BxN/4R/iKZocAA4v
bundle.tracing.replay.min.jssha384-PczkS3RndBrJw+6wIpK23KXtM/1wJeWEYC/Tt7Buk0WqGdyTTHlXXMSSecScZ8Hp
captureconsole.debug.min.jssha384-H47UuHGul+p06rVRZ3alOkyYHpESHxhTXsWJpBAPlIi2Hj+noOYn81ABNcrsIZQC
captureconsole.jssha384-q5/+xJZj6CVFkBvVd3ofNPPsW2EUZHx4UZqSV1mVMX9G4kDzCTioQ5fUddV6cECv
captureconsole.min.jssha384-cghPPwjg6t7UIA08yEfr9RmGeNrRSp1LKkwc1VLZNgwM74VtJ9DOVjRi7FDBjHmS
contextlines.debug.min.jssha384-4V6z6ANJlBrixNsZBbKsAKo1NZhCkhUgMDkFcdJ+Be1PAld0JIlkoddxUxT9PJm7
contextlines.jssha384-XzjvFmqYcyvEdKKA6z+EpEO08wv2YgH6KSeG8abqODsQWraidbeAN5qRhdE1W8zI
contextlines.min.jssha384-IiJ1lPPNMpQGMm80b2BXposzwXDRgvIItcro5se27DDjvEqxgh+bMA8S/mF1KU7c
dedupe.debug.min.jssha384-tBYfYfmmNKIKBNG8LDtJy6iPL+1+RKvlpySF8if8fv0GS+eCOn14m3LKT/GSruBp
dedupe.jssha384-8BsgwSR/MHDIoVu9ZcBJtMliz66f96OwrIIru8S/ErXGANLk+LLMttsPTgrjjPf/
dedupe.min.jssha384-+FdR2EPuKsCgPfVoVvx2hd+ckwHrJrpM2R4g1njIcQeuE698iRKkZbrK2OlwjzbC
extraerrordata.debug.min.jssha384-I5DsSnYLOjhULZLexo800/V0vmAIcNpyw2hXnRuAP39zYD3njRcibEVpn/4R5XLR
extraerrordata.jssha384-+Sx6QAfGM0s/U7YV6wUemsdEURMhAqTE+sUXQ9LjP5SRRiRhU8riXOLRcfe4k7qo
extraerrordata.min.jssha384-xfxQNIic1xgaUssHOYvVbDz2s5AaPFQIdPEwwqnczC7OE+8Oe4lMU9ApRm2K9t6c
feedback-modal.debug.min.jssha384-4ANvuWy6m7UNpKDGgldIIVoy5G20DJLJr0LKnuK3ifgldVC+x/OBuzcNrGKDCbbq
feedback-modal.jssha384-XmHUTD5T3k81w11i+NlmW4MrGumYIoTEuaqRoh2DfahSIsPcML9FSbDuaTp344UO
feedback-modal.min.jssha384-EvCCmmCCcB45qop3Ft5+ZeRl7ExCuUsOVVsjKoPcXGlk7N4uPzRLZdBfSt2ZJATc
feedback-screenshot.debug.min.jssha384-MmOzzMnQBK+ke4nAMfEOcQvSzy14Ys7TPn6slZHouvm9xVezXm5MIIoGHVCbpK8z
feedback-screenshot.jssha384-Rsn6nHx4gNi9mfInYiGL1K+7jScSYOqD9NCzdsJ2GGlpfwz6Qurt2LAQcvKMPEDm
feedback-screenshot.min.jssha384-qMj16WZtudzGqyBqhz5r0WwX8k2B55mf3CW18wgmhYXKkOGEoeY5b9Bm92GHFaNv
feedback.debug.min.jssha384-eQHLMJ98Tmv4p1RN8wW5YQ8ZrSz6kXBKDbWdKcABfuAqTBMaWpGiPx3/3dZ88TxG
feedback.jssha384-YD68Ub4VFzrVNBOg4/aey+HlYD/sIxbt9gx+W+zCTD9o2KR97K4njSoF+AxCm1o6
feedback.min.jssha384-XBSEuhT6AAChCRKUpAy5NoEMeefTuVAN325xDu46Q1UlBp2C2iAEgMGqA7WCIgTp
graphqlclient.debug.min.jssha384-xrr1FYItCxILzuDlggWk2/Fl3KsaVRDZb8lk8t/hsRWXj1ssAFZTJ/Ujy9oFjB6G
graphqlclient.jssha384-nZdrSGQMLLsuAeXIdeKrSrO/vZ/jWXV+pYXiHabYA8AcdeRwJDCtIUbhKuRnGgYT
graphqlclient.min.jssha384-sIXQz83TL5feTYHkbvJPxjzybTBkAOOEI90zFxnJR9Y4W8jDfe2uOqGCPUe3MliC
httpclient.debug.min.jssha384-iX2bs+H3XVkeQN59PE+gHxPhY8WWdy3PyRxiEx8IVk0fTjMFrHZS4oeAxZI/cSe3
httpclient.jssha384-eJDIgkrAkNVIiemyV5LeFlGhcIxjLGHq2k8JE8gw4ATJHimEOrnoxN+BBUlyH9y3
httpclient.min.jssha384-ntzb1hQWoSaHvbLSetloYva7vl+yH120RNPrMl5yugOAcUDLUsm2BpHfpR/pXRS6
modulemetadata.debug.min.jssha384-C25dBLzAbXSPiAF26L91F7j8+mRp0xlu2qwSy5N5qy5ERcfComb3iBdOWm6gkDVG
modulemetadata.jssha384-Fg5ntHzP9uc3k7SaOq8jKpeyqcniW/xpZ/d8ButVBrbAkJ+8MaICJeWlRSp1O2C/
modulemetadata.min.jssha384-UvH/p0WBIgswcE1YJ//qPyYD8mOoSeICzX6qwfNp8mWCP51o4pXbkAwyfqrwwD5Q
multiplexedtransport.debug.min.jssha384-ZQpgynrZEIZT+swhCdzNXtfvgNcakwc9dma3Dj0ZDf9lP87B0CCozauvYN9pu8Gx
multiplexedtransport.jssha384-Lng1tr/XatmU22wQak0jS25smZooM/oJyq9NmnoXp4u/IuiU9uki8xY3BRwMiWuo
multiplexedtransport.min.jssha384-1AIjqmwTbSjx+fbnIhuaAAdvDIo64GRzDO2B6TpMIG83RhNh+RA/vQllTQuIfSij
replay-canvas.debug.min.jssha384-mF+geIliFlSauYL4MHuphi6cjC6jrYadymbTAyYyJqD56/1V4uww/MMcvqXCoLUc
replay-canvas.jssha384-5DMe6VONtjhe5dVCdblJHAdKWim4u28+axASw2pWKzuQ35GNS2wlPO+UauTdflgO
replay-canvas.min.jssha384-AD7jvMBhjoVK3vT0xeH/kxudEg+27b7lgqayl0YzWHz7vFd3CiGfSyUY+hkJYYV5
replay.debug.min.jssha384-bftgPptOLCU7/0HCLPBJUWJ9b/QMMDR3wetCeHnkWgmCpmtYek85SEUJDJ50r+7t
replay.jssha384-tj5E4YwcnYEefmrBDAiMrNktDkOZjMCLBgTj+iY8d3fpVWDELkG1yGvM1u4ngPLf
replay.min.jssha384-yTGYyEP/xJbSPKbUYwZoYzbMA9JDuAGyD7PBlwYPNYcwkyjMKOLxyPpUzutoWVEl
reportingobserver.debug.min.jssha384-Vp9LJRmsC80xf/6oKL//w1LS8c9QhtfPNWqZCHyCpaJuKkdnFg87q8sCa+3ZzhfE
reportingobserver.jssha384-xn1VdKWcwce+yIrDrCXtldLh0f3xW20DDiB9MRAJjKaatc8IS92eNY4dmeig2Odi
reportingobserver.min.jssha384-TY7XvIt8GVxIk2JaS4DqA1y7VuAmYnAC9XQgUY1ymmK94JQjM+pogEdHlbAcvpsG
rewriteframes.debug.min.jssha384-r8XZa3pwtmx4yBPVwQpHQ+hYA8e0V6kTiLnsljPjXkD6TP7N2b5KpiYZVh5D8viW
rewriteframes.jssha384-fxGcdOX6irA6YkCQeG1I/4CWFmcB5PCj++wosfziua17M96Nv0/Df+SQiTw5k3vm
rewriteframes.min.jssha384-M+5Sk8ZQMDys9EoJ+KZ4OSF7r1xT0yJclzlFaKTWANjVYLAdpjiHcFzzL6YmnK9r
spotlight.debug.min.jssha384-hfRj0Y6yPMjbTLrHOlacvG4KDklMlkEnWDeVCHJIMBs+46aYBLH5tp4R4p6i8hR9
spotlight.jssha384-ZsaPAH8SmRXzJ4ViaaikAGpgkezamapPFfEsQdGtO/MTEV+Oy3qQPutwMXDJRaou
spotlight.min.jssha384-JQW5pyRbqRc63FUDlEF06sef5rF1L5e9zGtuFOHEBDC2YekJ1qjuGj4ksgQoM6cN

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").