From 98bdda7298362fce5a89db8db6f8b0af93556cdf Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Wed, 10 Apr 2019 22:42:07 +0100 Subject: [PATCH] update documentation to add hattip to new crossorigin configuration param update documentation to add hattip to new crossorigin configuration param as per https://github.com/symfony/recipes/pull/562/files --- frontend/encore/cdn.rst | 4 ++++ 1 file changed, 4 insertions(+) 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.