WeChat Mini Program Font Android Issue
When using wx.loadFontFace to load fonts, it works fine in the development tool and on iOS devices, but always triggers the fail callback on Android devices, with no reason except {“status”: “error”}.
The solution:
The request domain for WeChat Mini Program is servicewechat.com, which requires CORS support.
Alternatively, add cross-origin support for font files in your Nginx configuration:
// nginx |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments