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

Allow crossorigin attribute in headScript #6634

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/HeadScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class HeadScript extends Placeholder\Container\AbstractStandalone
*
* @var array
*/
protected $optionalAttributes = array('charset', 'defer', 'language', 'src');
protected $optionalAttributes = array('charset', 'crossorigin', 'defer', 'language', 'src');
Copy link
Member

Choose a reason for hiding this comment

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

Can we also change this to one-per-line for easier diffing in future?


/**
* Required attributes for script tag
Expand Down