mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
Resolve ReCaptcha CSP #841
This commit is contained in:
parent
9c9eea0dac
commit
07dae9dd30
1 changed files with 7 additions and 5 deletions
|
|
@ -6,8 +6,8 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
NAME = 'reCaptcha',
|
NAME = 'reCaptcha',
|
||||||
AUTHOR = 'SnappyMail',
|
AUTHOR = 'SnappyMail',
|
||||||
URL = 'https://snappymail.eu/',
|
URL = 'https://snappymail.eu/',
|
||||||
VERSION = '2.13',
|
VERSION = '2.14',
|
||||||
RELEASE = '2022-12-08',
|
RELEASE = '2023-01-11',
|
||||||
REQUIRED = '2.23',
|
REQUIRED = '2.23',
|
||||||
CATEGORY = 'General',
|
CATEGORY = 'General',
|
||||||
LICENSE = 'MIT',
|
LICENSE = 'MIT',
|
||||||
|
|
@ -141,10 +141,12 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
|
|
||||||
public function ContentSecurityPolicy(\SnappyMail\HTTP\CSP $CSP)
|
public function ContentSecurityPolicy(\SnappyMail\HTTP\CSP $CSP)
|
||||||
{
|
{
|
||||||
$CSP->script[] = 'https://www.google.com/recaptcha/';
|
// $CSP->script[] = 'https://www.google.com/recaptcha/';
|
||||||
$CSP->script[] = 'https://www.gstatic.com/recaptcha/';
|
$CSP->script[] = 'https://www.gstatic.com/recaptcha/';
|
||||||
$CSP->frame[] = 'https://www.google.com/recaptcha/';
|
$CSP->script[] = 'https://www.recaptcha.net/recaptcha/';
|
||||||
$CSP->frame[] = 'https://recaptcha.google.com/recaptcha/';
|
// $CSP->frame[] = 'https://www.google.com/recaptcha/';
|
||||||
|
// $CSP->frame[] = 'https://recaptcha.google.com/recaptcha/';
|
||||||
|
$CSP->frame[] = 'https://www.recaptcha.net/recaptcha/';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue