Redirect to metadata problem?

I found in the topic API Metadata when behind Nginx proxy pass

your reply is

You can configure it with a Config.WebHostUrl, e.g:

SetConfig({
    WebHostUrl = "http://local.mydomain.com/api"
});

I set the config like below , it works fine.

SetConfig({
    WebHostUrl = "http://api.domain.com"
});