mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 04:19:27 -05:00
6cf261930a
Synapse doesn’t allow for media resources to be played directly from Chrome. It is a problem for users on other networks (e.g. IRC) communicating with Matrix users through a gateway. The gateway sends them the raw URL for the resource when a Matrix user uploads a video and the video cannot be played directly in Chrome using that URL. Chrome argues it is not authorized to play the video because of the Content Security Policy. Chrome checks for the "media-src" policy which is missing, and defauts to the "default-src" policy which is "none". As Synapse already sends "object-src: 'self'" I thought it wouldn’t be a problem to add "media-src: 'self'" to the CSP to fix this problem. |
||
---|---|---|
.. | ||
__init__.py | ||
_base.py | ||
config_resource.py | ||
download_resource.py | ||
filepath.py | ||
identicon_resource.py | ||
media_repository.py | ||
media_storage.py | ||
preview_url_resource.py | ||
storage_provider.py | ||
thumbnail_resource.py | ||
thumbnailer.py | ||
upload_resource.py |