Trying to use viwerjs (https://viewerjs.org/) . My directory structure is given bellow.
Main
ViwerJS
mydoc.pdf
main.html
My browser shows CORS error . Here is my code
<iframe src="ViewerJS/index.html#../mydoc.pdf" width="100%" ></iframe>
It shows Access to XMLHttpRequest at from origin 'null' has been blocked by CORS policy How can I fix that