Skip to content

Commit 8554933

Browse files
authored
fix(storefront): STRF-11941 Remove quotes from nonce (#309)
1 parent cff117b commit 8554933

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

helpers/nonce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const factory = globals => {
44
return function() {
55
const params = globals.getRequestParams();
66
if (params && params.security && params.security.nonce) {
7-
return new globals.handlebars.SafeString(`"${params.security.nonce}"`);
7+
return new globals.handlebars.SafeString(params.security.nonce);
88
}
99
return ''
1010
};

spec/helpers/nonce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('nonce helper', function () {
1717
runTestCases([
1818
{
1919
input: '{{nonce}}',
20-
output: '"' + requestParams.security.nonce + '"',
20+
output: requestParams.security.nonce,
2121
},
2222
], done);
2323
});

0 commit comments

Comments
 (0)