Forum Discussion

Umag98's avatar
Umag98
Brass Contributor
Dec 09, 2021

not able to view the files from sharepoint in react file viewer

when i try the react file viewer from this repo https://codesandbox.io/s/react-file-reader-forked-3oszl?file=/src/index.js i am able to view files from online samples but not sharepoint url, when i do so i am getting the cros error

Access to XMLHttpRequest at 'https://sharepoint.com/sites/DevL/Clients/AVM001103/Forms/AllItems.aspx?id=%2Fsites%2FDevL%2FClients%2FAVM001103%2FResults%2Edocx&parent=%2Fsites%2FDevL%2FClients%2FAVM001103' from origin 'https://w2hpd.csb.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

No RepliesBe the first to reply

Resources