Permalink
Browse files

Bug #4139 reCAPTCHA causing CSP problems

  • Loading branch information...
lem9 committed Oct 27, 2013
1 parent 81308d3 commit 0f4ff4dd54c95667ff44910b5768f5146fad6393
Showing with 6 additions and 0 deletions.
  1. +6 −0 libraries/Header.class.php
@@ -474,6 +474,8 @@ public function sendHttpHeaders()
. "img-src 'self' data: "
. $GLOBALS['cfg']['CSPAllow']
. ($https ? "" : $mapTilesUrls)
+ // for reCAPTCHA
+ . " https://www.google.com"
. ";"
);
if (PMA_USR_BROWSER_AGENT == 'SAFARI'
@@ -487,6 +489,8 @@ public function sendHttpHeaders()
. "img-src 'self' data: "
. $GLOBALS['cfg']['CSPAllow']
. ($https ? "" : $mapTilesUrls)
+ // for reCAPTCHA
+ . " https://www.google.com"
. ";"
);
} else {
@@ -504,6 +508,8 @@ public function sendHttpHeaders()
. "img-src 'self' data: "
. $GLOBALS['cfg']['CSPAllow']
. ($https ? "" : $mapTilesUrls)
+ // for reCAPTCHA
+ . " https://www.google.com"
. ";"
);
}

0 comments on commit 0f4ff4d

Please sign in to comment.