You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (closessymfony#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
Copy file name to clipboardExpand all lines: frontend/encore/cdn.rst
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,3 +38,7 @@ You *do* need to make sure that the ``script`` and ``link`` tags you include on
38
38
pages also use the CDN. Fortunately, the
39
39
:ref:`entrypoints.json <encore-entrypointsjson-simple-description>` paths are updated
40
40
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