diff --git a/frontend/encore/cdn.rst b/frontend/encore/cdn.rst index b48ef007dca..2b4b95ffb4c 100644 --- a/frontend/encore/cdn.rst +++ b/frontend/encore/cdn.rst @@ -38,3 +38,7 @@ You *do* need to make sure that the ``script`` and ``link`` tags you include on pages also use the CDN. Fortunately, the :ref:`entrypoints.json ` paths are updated to include the full URL to the CDN. + +If you are using ``Encore.enableIntegrityHashes()`` and your CDN and your domain are not the [same-origin](https://en.wikipedia.org/wiki/Same-origin_policy) +then you might need to set the ``crossorigin`` configuration value in your webpack_encore.yaml configuration +to ``anonymous`` or ``use-credentials`` to overcome CORS errors.