mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	optimized CSP for peertube
This commit is contained in:
		| @@ -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'} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user