Allow ajax ranged requests

This commit is contained in:
shortcutme 2017-12-07 15:25:32 +01:00
parent 0009b1b7d1
commit 51fdf95295
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -218,7 +218,7 @@ class UiRequest(object):
if self.env["REQUEST_METHOD"] == "OPTIONS":
# Allow json access
headers.append(("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Cookie"))
headers.append(("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Cookie, Range"))
headers.append(("Access-Control-Allow-Credentials", "true"))
if content_type == "text/html":