@KevinPan your problem is not exactly the same, because according to your reply over there, you're using IIS not nginx.
I don't know how to use IIS (don't know if any one else here who does) but you'll need to set the same headers that we do in the example nginx file: https://docs.nodebb.org/configuring/proxies/nginx/#basic-setup