title: aws amplify not serving content-type for wasm
body: <p>I've written a wasm module with wasm-pack in rust. I'm using it as part of a react SPA. I've published the wasm library to npm and everything works fine on my local machine. It also works on an ec2 instance; however when I deploy via aws Amplify, I get the following issue</p>
  <pre><code>Unexpected error in loadWasm. [Message: Response has unsupported MIME type]
  </code></pre>
  <p>The response header includes</p>
  <pre><code>content-type: text/html
  </code></pre>
  <p>for</p>
  <pre><code>https://master.d3447bi8c4sf9b.amplifyapp.com/ac0bae67a38fb31af71d.module.wasm
  </code></pre>
  <p>I've tried to edit the custom header yml a few different ways</p>
  <pre><code>customHeaders:
    - pattern: '*.wasm'
      headers:
        - key: Content-Type
          value: application/wasm
  
  customHeaders:
    - pattern: '*.wasm'
      headers:
        - key: 'Content-Type'
          value: 'application/wasm'
  </code></pre>
  <p>I'm not sure if the wasm is being served from Amplify improperly or what. Any help would be appreciated</p>