There was an error while loading. Please reload this page.
2 parents dbfbfbc + f3bbd5b commit 535cc03Copy full SHA for 535cc03
1 file changed
apps/viewer/apps/viewer/src/services/DavClient.js
@@ -24,6 +24,9 @@ import webdav from 'webdav'
24
import axios from '@nextcloud/axios'
25
import { getRootPath, getToken, isPublic } from '../utils/davUtils'
26
27
+// Add this so the server knows it is an request from the browserg
28
+axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
29
+
30
// force our axios
31
const patcher = webdav.getPatcher()
32
patcher.patch('request', axios)
0 commit comments