Actions
Bug #78262
closedMissing CORS settings attribute when using integrity with includeJS
Start date:
2016-10-12
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
TypoScript¶
includeJS { jquery = //ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js jquery { external = 1 # integrity was computed with https://srihash.org/ integrity = sha384-Pn+PczAsODRZ2PiGg0IheRROpP7lXO1NTIjiPo6cca8TliBvaeil42fobhzvZd74 } }
Generated HTML¶
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" type="text/javascript" integrity="sha384-Pn+PczAsODRZ2PiGg0IheRROpP7lXO1NTIjiPo6cca8TliBvaeil42fobhzvZd74"></script>
Problem¶
Chrome (at least) does not load the resource and says:
Solution¶
Add attribute crossorigin="anonymous"
when using integrity.
Documentation¶
Files
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50196
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50209
Updated by Xavier Perseguers about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 633c36b43ae3dbf343a1cd258cca480ace95db79.
Actions