Skip to content

Commit b00c99b

Browse files
committed
minor symfony#11399 update documentation to add hattip to new crossorigin configuration (PhilETaylor)
This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes symfony#11399). Discussion ---------- update documentation to add hattip to new crossorigin configuration Update documentation to add hattip to new crossorigin configuration param as per https://github.com/symfony/recipes/pull/562/files will update this page https://symfony.com/doc/current/frontend/encore/cdn.html Commits ------- 68b0e9b update documentation to add hattip to new crossorigin configuration param
2 parents 9657ac2 + 68b0e9b commit b00c99b

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)