I am using pdf.js to view pdf in my website. However, the viewer.html won't load the viewer.css, pdf.js, and viewer.js. My viewer.html is in the same directory as my viewer.css and viewer.js. The pdf.js is in build directory. My viewer html won't load all these files.
I've tried the solution listed in here : HTML not loading CSS file. But nothing helped.
This is my code
<link rel="stylesheet" type="text/css" href="./viewer.css">
<script src="build/pdf.js"></script>
<script src="./viewer.js"></script>
Chrome throw error 404 on these three files. I'm using Coldfusion and I'm putting pdf.js on the iframe, could that be the reason?