Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
Add worker as valid source
Browse files Browse the repository at this point in the history
  • Loading branch information
Firesphere authored Jun 12, 2023
1 parent 71d0045 commit 914c1de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Models/CSPDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CSPDomain extends DataObject implements PermissionProvider

private static $db = [
'Domain' => 'Varchar(255)',
'Source' => 'Enum("default,script,style,img,media,font,form,frame,ancestor")'
'Source' => 'Enum("default,script,style,img,media,font,form,frame,ancestor,woorker")'
];

private static $belongs_many_many = [
Expand Down Expand Up @@ -54,7 +54,8 @@ class CSPDomain extends DataObject implements PermissionProvider
'media' => 'Embedded media (e.g. YouTube)',
'font' => 'Fonts',
'form' => 'Forms',
'frame' => 'Iframes'
'frame' => 'Iframes',
'worker' => 'Worker'
];

private static $searchable_fields = [
Expand Down

0 comments on commit 914c1de

Please sign in to comment.