Skip to content

Commit

Permalink
fix(mc-html-template): permission policy to be joined with comma
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeekens committed Apr 29, 2021
1 parent 6d1140f commit 75394e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mc-html-template/src/process-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const mergeCspDirectives = (...csps) =>
),
{}
);
const toHeaderString = (directives = {}) =>
const toHeaderString = (directives = {}, seperator = '; ') =>
Object.entries(directives)
.map(
([directive, value]) =>
Expand Down Expand Up @@ -126,7 +126,8 @@ const processHeaders = (applicationConfig) => {
}),
...(applicationConfig.headers.permissionsPolicies && {
'Permissions-Policy': toHeaderString(
applicationConfig.headers.permissionsPolicies
applicationConfig.headers.permissionsPolicies,
', '
),
}),
};
Expand Down

0 comments on commit 75394e4

Please sign in to comment.