Is SSR useless if the request url is not sure?
[issue link]What is my problem?
If the domain name of the access server is a.web.com,
then the request address of the API interface is a.api.com
,if the domain name is b.web.com
,then the request address is b.api.com
. This means I can’t request an interface on the server side, because I can’t get to window.location.host
, so I don’t know the address of the interface to be requested.