summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-03-04 23:17:35 +0800
committerCheng-Han, Wu2016-03-04 23:17:35 +0800
commit845ef9bad6b9f5ff471b62505f9e39300297a3a4 (patch)
tree8ee0bcd9a2b0ba22330d7ca4015c681bf4ad2bcf /lib/response.js
parentc183002c14397c8b6e1ef26c1367197d987d7c62 (diff)
Support export to and import from Google Drive
Diffstat (limited to 'lib/response.js')
-rw-r--r--lib/response.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js
index d8f82a9f..488cf864 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -329,6 +329,8 @@ function actionDownload(req, res, noteId) {
filename = encodeURIComponent(filename);
res.writeHead(200, {
'Access-Control-Allow-Origin': '*', //allow CORS as API
+ 'Access-Control-Allow-Headers': 'Range',
+ 'Access-Control-Expose-Headers': 'Cache-Control, Content-Encoding, Content-Range',
'Content-Type': 'text/markdown; charset=UTF-8',
'Cache-Control': 'private',
'Content-disposition': 'attachment; filename=' + filename + '.md',