Browse Source

Change Google recaptcha URL to make it available in China

ainuoyan 6 years ago
parent
commit
32e400892b

+ 3 - 3
server/src/main/resources/password/pwm/AppProperty.properties

@@ -284,9 +284,9 @@ queue.syslog.maxCount=100000
 reporting.ldap.searchTimeoutMs=1800000
 reporting.ldap.searchThreads=8
 reporting.maxReportAgeSeconds=864000
-recaptcha.clientJsUrl=//recaptcha.net/recaptcha/api.js
-recaptcha.clientIframeUrl=//recaptcha.net/recaptcha/api/noscript
-recaptcha.validateUrl=https://recaptcha.net/recaptcha/api/siteverify
+recaptcha.clientJsUrl=//www.recaptcha.net/recaptcha/api.js
+recaptcha.clientIframeUrl=//www.recaptcha.net/recaptcha/api/noscript
+recaptcha.validateUrl=https://www.recaptcha.net/recaptcha/api/siteverify
 security.html.stripInlineJavascript=false
 security.http.forceRequestSequencing=false
 security.http.stripHeaderRegex=\\n|\\r|(?ism)%0A|%0D

+ 1 - 1
server/src/main/resources/password/pwm/config/PwmSetting.xml

@@ -1615,7 +1615,7 @@
     </setting>
     <setting hidden="false" key="security.cspHeader" level="2">
         <default>
-            <value><![CDATA[default-src 'self'; object-src 'none'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src https://www.recaptcha.net/recaptcha/ https://www.gstatic.cn/recaptcha/ 'self' 'unsafe-eval' 'nonce-%NONCE%'; frame-src https://www.recaptcha.net/recaptcha/ https://www.gstatic.cn/recaptcha/ ; report-uri /sspr/public/command/cspReport]]></value>
+            <value><![CDATA[default-src 'self'; object-src 'none'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src https://www.recaptcha.net/recaptcha/ https://www.gstatic.cn/recaptcha/  https://www.gstatic.com/recaptcha/ https://www.google.com/recaptcha/ 'self' 'unsafe-eval' 'nonce-%NONCE%'; frame-src https://www.recaptcha.net/recaptcha/ https://www.gstatic.cn/recaptcha/ https://www.gstatic.com/recaptcha/ https://www.google.com/recaptcha/ ; report-uri /sspr/public/command/cspReport]]></value>
         </default>
     </setting>
     <setting hidden="false" key="email.adminAlert.toAddress" level="1">