---
layout: default-layout
title: "How to Resolve the Magic Word Error in DBR JS - Dynamsoft"
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, Magic Word, MIME
description: "Learn how to fix the \"expected magic word\" WebAssembly error in Dynamsoft Barcode Reader JS by properly configuring the .wasm MIME type and HTTPS."
needAutoGenerateSidebar: false
---

# How to resolve the expected magic word error that occurs when using DBR-JS?

When you build an application using DBR-JS, and you choose to self-host the resources on your own server by getting a copy of the resource files of the library, there is a chance that you could run into an error along the lines of:

`Failed to get license info: WebAssembly.instantiate(): expected magic word...`

This error is most probably happening because you failed to configure the MIME types to include the `.wasm` file type when setting up the server. To learn how to configure the server, including the MIME type as well as enabling HTTPS, please refer to this [article](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/#step-1-include-the-sdk).
