mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Support export to and import from Google Drive
This commit is contained in:
parent
c183002c14
commit
845ef9bad6
8 changed files with 528 additions and 5 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue