Skip to content

Commit 535cc03

Browse files
authored
Merge pull request #581 from nextcloud/fix/public_pages_no_fed
2 parents dbfbfbc + f3bbd5b commit 535cc03

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/viewer/apps/viewer/src/services/DavClient.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import webdav from 'webdav'
2424
import axios from '@nextcloud/axios'
2525
import { getRootPath, getToken, isPublic } from '../utils/davUtils'
2626

27+
// Add this so the server knows it is an request from the browserg
28+
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
29+
2730
// force our axios
2831
const patcher = webdav.getPatcher()
2932
patcher.patch('request', axios)

0 commit comments

Comments
 (0)