What are the server requirements for Dbr JS deployment?
To deploy DBR-JS to the server, you need to
- Set the MIME type for
.wasm
asapplication/wasm
on your webserver.
The goal is to configure your server to send the correct Content-Type header for the wasm file so that it is processed correctly by the browser.
Different types of webservers are configured differently, for example:
- Enable HTTPS
Due to the browser security restriction on camera video streaming access, a secure HTTPS connection is required to use the library with camera.
For convenience, self-signed certificates can be used during development and testing.