【Web SDK】按照开发者手册中的入门指南,运行全功能Demo报错

Console报:Uncaught(in promise) undefined
Network报:gsdk.wasm.brotli?h=***** 404

答:

       通常情况下,web应用的HTTP服务采用的IIS服务器时会出现该问题,需要在IIS中配置MIME类型:
<mimeMap fileExtension=”.wasm” mimeType=”application/wasm” />
<mimeMap fileExtension=”.mem” mimeType=”text/plain” />
<mimeMap fileExtension=”.brotli” mimeType=“application/octet-stream”
<mimeMap fileExtension=”.json” mimeType=”application/json” />

详情参考:https://developers.foxitsoftware.cn/kb/article/%E5%A6%82%E4%BD%95%E5%9C%A8iis%E4%B8%AD%E9%85%8D%E7%BD%AEmime%E7%B1%BB%E5%9E%8B/