Rev2144, Fix CSP header in FilePack plugin, Allow media-src and font-src from self source
This commit is contained in:
parent
c8f37674c6
commit
e525ea2431
3 changed files with 8 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue