This is a unique scenario... TLDR is my JS is trying to load a .wasm file which contains a brotli decryption library that's pretty specific to my use case.
Desired workflow:
- User scans QR code to my site
- App intercepts it and handles it locally / offline, redirecting the user to
/board/HASHwhich loads a self-container index.html with it's own js/css and .wasm file (for decrypting the hash). - Currently, this is where it breaks, because the index.html loads
brotli_wasm_bg-NfWIZley.wasmwhich is a relative path and appears to be returning an empty body instead of the static file I'm expecting.
Existing file structure is attached. Here's a snipper from index.html:
<script type="module" crossorigin src="board-DEn-zR7s.js"></script>
<link rel="stylesheet" crossorigin href="main-DgwIXneD.css">
and from the boardxxxx.js file: ...en(e){typeof e>"u"&&(e=new URL("brotli_wasm_bg-NfWIZley.wasm",import.meta.url));const t={...