Loading File Stored in Network Shared Drive

I am trying to load a PDF file from shared network drive and when I tried to load it through the webviewer instance it says " The file has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.". Does anyone get this error as well?