Closed gopia-aroopatech closed 2 years ago
Hi,
We are getting a CORS error while viewing the PDF in React-Doc-Viewer. The same coding was working fine for Doc & Docx. Below is the screenshot. Past one month it was working well. What's wrong with this.
const documents = [{ uri: this.state.fileurl, fileType: 'pdf' }]; this.setState({ pdfDoc: documents });
Hi, I fixed the above issue. This was related to Azure CORS settings.
Hi,
We are getting a CORS error while viewing the PDF in React-Doc-Viewer. The same coding was working fine for Doc & Docx. Below is the screenshot. Past one month it was working well. What's wrong with this.
const documents = [{ uri: this.state.fileurl, fileType: 'pdf' }]; this.setState({ pdfDoc: documents });