From 1aa36dd7b097a5d2fc98170d3a1f7e5e77a40535 Mon Sep 17 00:00:00 2001 From: Roel van Hintum Date: Tue, 5 Jan 2021 09:40:58 +0100 Subject: [PATCH] Bump to 1.3.0 --- CHANGELOG.md | 4 ++++ src/models/Settings.php | 20 +++----------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0a21cc..7c2894b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.3.0 - 2021-01-05 +### Added +- Added `base-uri` support. Thanks to @clarknelson + ## 1.2.1.1 - 2020-11-03 ### Fixed - Fixed composer.json for composer 2 diff --git a/src/models/Settings.php b/src/models/Settings.php index c65d202..185213d 100644 --- a/src/models/Settings.php +++ b/src/models/Settings.php @@ -9,13 +9,11 @@ class Settings extends Model public $enabled = true; public $baseUri = [ - "'none'" + "'none'", ]; public $defaultSrc = []; public $scriptSrc = [ "'self'", - // "'unsafe-inline'", - // "'unsafe-eval'", ]; public $styleSrc = [ "'self'", @@ -28,26 +26,14 @@ class Settings extends Model public $objectSrc = []; public $mediaSrc = []; public $frameSrc = []; - public $sandbox = [ - // "'allow-forms'", - // "'allow-same-origin'", - // "'allow-scripts allow-popups'", - // "'allow-modals'", - // "'allow-orientation-lock'", - // "'allow-pointer-lock'", - // "'allow-presentation'", - // "'allow-popups-to-escape-sandbox'", - // "'allow-top-navigation'", - ]; + public $sandbox = []; public $reportUri = []; public $childSrc = []; public $formAction = []; public $frameAncestors = []; public $pluginTypes = []; public $reportTo = []; - public $workerSrc = [ - // 'blob:', - ]; + public $workerSrc = []; public $manifestSrc = []; public $navigateTo = [];