Skip to content

Commit f3f14a9

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: update documentation to add hattip to new crossorigin configuration param
2 parents cc2bf10 + 830079a commit f3f14a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/encore/cdn.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ You *do* need to make sure that the ``script`` and ``link`` tags you include on
3838
pages also use the CDN. Fortunately, the
3939
:ref:`entrypoints.json <encore-entrypointsjson-simple-description>` paths are updated
4040
to include the full URL to the CDN.
41+
42+
If you are using ``Encore.enableIntegrityHashes()`` and your CDN and your domain
43+
are not the `same-origin`_, you may need to set the ``crossorigin`` option in
44+
your webpack_encore.yaml configuration to ``anonymous`` or ``use-credentials``
45+
to overcome CORS errors.
46+
47+
.. _`same-origin`: https://en.wikipedia.org/wiki/Same-origin_policy

0 commit comments

Comments
 (0)