Skip to content

Not rendering the pdf in the browser #1

Description

@Euno257

Screenshot from 2019-06-07 19-46-12
When i used google's inspect tool, in console its showing following errors:

network.js:108 Access to XMLHttpRequest at 'file:///home/hersh/Desktop/docs/pdf.pdf' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
network.js:199 Uncaught TypeError: Cannot read property 'xhr' of undefined
at NetworkManager.getRequestXhr (network.js:199)
at PDFNetworkStreamFullRequestReader._onHeadersReceived (network.js:301)
at NetworkManager.onStateChange (network.js:133)
at NetworkManager.request (network.js:108)
at NetworkManager.requestFull (network.js:68)
at new PDFNetworkStreamFullRequestReader (network.js:278)
at PDFNetworkStream.getFullReader (network.js:243)
at WorkerTransport. (api.js:1786)
at _callee$ (message_handler.js:25)
at tryCatch (runtime.js:45)
network.js:356 Uncaught TypeError: Cannot read property 'reject' of undefined
at PDFNetworkStreamFullRequestReader._onError (network.js:356)
at XMLHttpRequest.xhr.onerror (network.js:97)
at NetworkManager.request (network.js:108)
at NetworkManager.requestFull (network.js:68)
at new PDFNetworkStreamFullRequestReader (network.js:278)
at PDFNetworkStream.getFullReader (network.js:243)
at WorkerTransport. (api.js:1786)
at _callee$ (message_handler.js:25)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:271)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions