Skip to content

Commit 68b0e9b

Browse files
PhilETaylorjaviereguiluz
authored andcommitted
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
1 parent 9657ac2 commit 68b0e9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/encore/cdn.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ 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 are not the [same-origin](https://en.wikipedia.org/wiki/Same-origin_policy)
43+
then you might need to set the ``crossorigin`` configuration value in your webpack_encore.yaml configuration
44+
to ``anonymous`` or ``use-credentials`` to overcome CORS errors.

0 commit comments

Comments
 (0)