Skip to content

Commit 86eda58

Browse files
authored
Update system-requirement.md: Add Set MIME type
1 parent 31fdaa2 commit 86eda58

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

programming/javascript/faq/system-requirement.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ The latest version of DBR requires the following features to work:
2222
> Some browsers like Chrome may grant the access for `http://127.0.0.1` and `http://localhost` or even for pages opened directly from the local disk (`file:///...`). This can be helpful for temporary development and test.
2323
2424
- Dynamsoft License requires a secure context to work.
25+
26+
- Set the MIME type for `.wasm` as `application/wasm`
27+
28+
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.
29+
30+
Different types of webservers are configured differently, for example:
31+
32+
+ <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/Apache_Configuration_htaccess#media_types_and_character_encodings" title="Apache">Apache</a>
33+
+ <a target="_blank" href="https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap" title="IIS">IIS</a>
34+
+ <a target="_blank" href="https://www.nginx.com/resources/wiki/start/topics/examples/full/#mime-types" title="NGINX">NGINX</a>
35+
2536

2637
- `WebAssembly`, `Blob`, `URL`/`createObjectURL`, `Web Workers`
2738

@@ -46,4 +57,4 @@ The following table is a list of supported browsers based on the above requireme
4657

4758
<sup>1</sup> devices running iOS needs to be on iOS 14.3+ for camera video streaming to work in Chrome, Firefox or other Apps using webviews.
4859

49-
Apart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.
60+
Apart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.

0 commit comments

Comments
 (0)