https:
*
1 parent a7ecaa2 commit 4bd5127Copy full SHA for 4bd5127
1 file changed
lib/plugins/validators/async/21_checkContentType.js
@@ -95,6 +95,7 @@ export default {
95
96
if (frame_ancestors) { // allow only if it contains " * " or "http://*" or "https://*"
97
frame_ancestors = frame_ancestors.replace(/https?:\/\/\*/ig, '*'); // Ex. Behance video streams via Adobe CDN
98
+ frame_ancestors = frame_ancestors.replace(/\bhttps?:(?!\S)/ig, '*'); // Ex. "frame-ancestors https:" - scheme-only means any HTTPS origin
99
frame_ancestors = frame_ancestors.replace(/^\*/i, ' *');
100
frame_ancestors = frame_ancestors.replace(/\*$/i, '* ');
101
if (frame_ancestors.indexOf(' * ') == -1) {
0 commit comments