Skip to content

Commit

Permalink
allow nonce in inline bookend (#27132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enriqe authored Mar 6, 2020
1 parent a9a67e2 commit 9491ea8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1>Advance to see the bookend!</h1>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-bookend layout=nodisplay>
<script type="application/json">
<script type="application/json" nonce="cryptographic-nonce123">
{
"bookendVersion": "v1.0",
"shareProviders": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ PASS
| </amp-story-grid-layer>
| </amp-story-page>
| <amp-story-bookend layout=nodisplay>
| <script type="application/json">
| <script type="application/json" nonce="cryptographic-nonce123">
| {
| "bookendVersion": "v1.0",
| "shareProviders": [
Expand Down
1 change: 1 addition & 0 deletions extensions/amp-story/validator-amp-story.protoascii
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ tags: { # amp-story-bookend (json)
value_casei: "application/json"
dispatch_key: NAME_VALUE_PARENT_DISPATCH
}
attr_lists: "nonce-attr"
}
tags: { # amp-story-consent (json)
html_format: AMP
Expand Down

0 comments on commit 9491ea8

Please sign in to comment.