diff --git a/src/CSPBuilder.php b/src/CSPBuilder.php index 3b2113c..7ed014c 100644 --- a/src/CSPBuilder.php +++ b/src/CSPBuilder.php @@ -625,6 +625,30 @@ public function setSelfAllowed(string $directive = '', bool $allow = false): sel return $this; } + /** + * @see CSPBuilder::setAllowUnsafeEval() + * + * @param string $directive + * @param bool $allow + * @return self + */ + public function setUnsafeEvalAllowed(string $directive = '', bool $allow = false): self + { + return $this->setAllowUnsafeEval($directive, $allow); + } + + /** + * @see CSPBuilder::setAllowUnsafeInline() + * + * @param string $directive + * @param bool $allow + * @return self + */ + public function setUnsafeInlineAllowed(string $directive = '', bool $allow = false): self + { + return $this->setAllowUnsafeEval($directive, $allow); + } + /** * Set the Report URI to the desired string. This also sets the 'report-to' * component of the CSP header for CSP Level 3 compatibility.