Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Allow integrity & crossorigin on head srcript/link #96

Conversation

akrause414
Copy link
Contributor

I noticed more than a few cdn resources I use etc.. twitter bootstrap now include/encourage the use of the integrity attribute for script and link tags:

"This integrity verification significantly reduces the risk that an attacker can substitute malicious content." https://www.w3.org/TR/SRI/

This request also includes the crossorigin attribute.

Copy link
Member

@weierophinney weierophinney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; will merge for 2.9.0 release later today.

- `offsetSetStylesheet($index, $href, $media, $conditionalStylesheet, $extras)`
- `prependStylesheet($href, $media, $conditionalStylesheet, $extras)`
- `setStylesheet($href, $media, $conditionalStylesheet, $extras)`
- `appendStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use [] instead of array(). (I can make that change on merge, however.)

@weierophinney weierophinney self-assigned this Mar 21, 2017
weierophinney added a commit that referenced this pull request Mar 21, 2017
Allow integrity & crossorigin on head srcript/link
weierophinney added a commit that referenced this pull request Mar 21, 2017
weierophinney added a commit that referenced this pull request Mar 21, 2017
@weierophinney
Copy link
Member

Thanks, @akrause414; merged to develop for release with 2.9.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants