Feature #66698

Add integrity property to JavaScript files

Added by Xavier Perseguers over 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2015-05-01
Due date:
% Done:

100%

PHP Version:
5.6
Tags:
Complexity:
Sprint Focus:

Description

invalid.png View (25.3 KB) Xavier Perseguers, 2015-05-01 09:35


Related issues

Related to TYPO3 Core - Bug #76944: Subrequest-integrity should also add cross-origin header Rejected 2016-07-05
Related to TYPO3 Core - Bug #77873: Missing crossorigin property for JavaScript files (SRI) Closed 2016-09-07

Associated revisions

Revision a5079093 (diff)
Added by Xavier Perseguers over 4 years ago

[FEATURE] Add integrity property to JavaScript files

Add a property 'integrity="some-hash"' to JavaScript files via TypoScript
page.includeJSlibs.<array>.integrity = some-hash

This patch affects the TypoScript PAGE properties
  • includeJSlibs
  • includeJSFooterlibs
  • includeJS
  • includeJSFooter

Resolves: #66698
Releases: master
Change-Id: I82b6aaaf424d7056844912f7194f88e01a972ec3
Reviewed-on: http://review.typo3.org/39132
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Frank Nägler <>
Tested-by: Frank Nägler <>

History

#1 Updated by Xavier Perseguers over 4 years ago

Tested on Chromium with invalid hash:

page.includeJS {
    10 = fileadmin/jquery-1.10.2.min.js
    10.disableCompression = 1
    10.excludeFromConcatenation = 1
    # valid:
    #10.integrity = sha256-C6CB9UYIS9UJeqinPHWTHVqh/E1uhG5Twh+Y5qFQmYg=
    # invalid:
    10.integrity = sha256-XXXXXXXXS9UJeqinPHWTHVqh/E1uhG5Twh+Y5qFQmYg=
}

#2 Updated by Gerrit Code Review over 4 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 http://review.typo3.org/39132

#3 Updated by Xavier Perseguers over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#4 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF