mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-06-30 22:22:01 +02:00
optimized CSP for peertube
This commit is contained in:
parent
02d478186c
commit
925f20f1e1
@ -96,6 +96,7 @@ class FilterModule(object):
|
||||
'font-src',
|
||||
'worker-src',
|
||||
'manifest-src',
|
||||
'media-src',
|
||||
]
|
||||
parts = []
|
||||
|
||||
|
@ -16,6 +16,10 @@ csp:
|
||||
whitelist:
|
||||
frame-ancestors:
|
||||
- "*"
|
||||
media-src:
|
||||
- "blob:"
|
||||
font-src:
|
||||
- "data:"
|
||||
domains:
|
||||
canonical:
|
||||
- "video.{{ primary_domain }}"
|
||||
|
@ -15,6 +15,7 @@ class TestCspConfigurationConsistency(unittest.TestCase):
|
||||
'font-src',
|
||||
'worker-src',
|
||||
'manifest-src',
|
||||
'media-src'
|
||||
}
|
||||
SUPPORTED_FLAGS = {'unsafe-eval', 'unsafe-inline'}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user