# Disable Apache's directory listing (mod_autoindex) across the whole app.
# Without this, browsing to any folder with no index file (e.g.
# /ipaper/modules/bed_request/) lists every file in it to anyone who guesses
# the URL. Applies recursively to every subdirectory unless a deeper
# .htaccess overrides it.
Options -Indexes

# Force the correct MIME type for ES module files used by the bundled
# pdf.js viewers (pdfjs/, pdfjs4/). Many stock Apache mime.types files have
# no .mjs entry, so without this Apache serves them as text/plain and the
# browser refuses to execute them ("Failed to load module script: Expected
# a JavaScript-or-Wasm module script but the server responded with a MIME
# type of text/plain"), breaking every PDF preview in the app. Don't rely
# on the server's mime.types being complete -- declare it explicitly here.
AddType text/javascript .mjs
