Skip to content
Merged
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
1 change: 1 addition & 0 deletions lib/plugins/validators/async/21_checkContentType.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default {

if (frame_ancestors) { // allow only if it contains " * " or "http://*" or "https://*"
frame_ancestors = frame_ancestors.replace(/https?:\/\/\*/ig, '*'); // Ex. Behance video streams via Adobe CDN
frame_ancestors = frame_ancestors.replace(/\bhttps?:(?!\S)/ig, '*'); // Ex. "frame-ancestors https:" - scheme-only means any HTTPS origin
frame_ancestors = frame_ancestors.replace(/^\*/i, ' *');
frame_ancestors = frame_ancestors.replace(/\*$/i, '* ');
if (frame_ancestors.indexOf(' * ') == -1) {
Expand Down
Loading