Rev2144, Fix CSP header in FilePack plugin, Allow media-src and font-src from self source

This commit is contained in:
shortcutme 2017-07-11 23:00:33 +02:00
parent c8f37674c6
commit e525ea2431
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 8 additions and 6 deletions

View file

@ -57,7 +57,7 @@ class UiRequestPlugin(object):
try:
file = openArchive(archive_path, path_within)
content_type = self.getContentType(file_path)
self.sendHeader(200, content_type=content_type)
self.sendHeader(200, content_type=content_type, noscript=kwargs.get("header_noscript", False))
return self.streamFile(file)
except Exception, err:
self.log.debug("Error opening archive file: %s" % err)