Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug #4139 reCAPTCHA causing CSP problems

  • Loading branch information...
commit 0f4ff4dd54c95667ff44910b5768f5146fad6393 1 parent 81308d3
@lem9 lem9 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 libraries/Header.class.php
View
6 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"
. ";"
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.