Today on-Line a api,6 machine-made cluster. The first step in the API is to read the cookie to determine if the user is logged in.
For example, the on-line servers were
10.255.242.1
10.255.242.2
10.255.242.3
10.255.242.4
10.255.242.5
10.255.242.6,
The API address is mlservice.taobao.com (as an example), the first step of the API is to take a cookie, determine whether the user is logged in, the call is mlservice.taobao.com?test_id=12
After the completion of the online, I always have to verify their own first. So I went straight to the tune:
10.255.242.1?TEST_ID=12, the result indicates that I am not logged in.
Step by step, find that the cookie is empty. Why, check for a long while, suddenly found that with IP access in Taobao This domain is no cookie
Hosts must be bound to access it.
10.255.242.1 mlservice.taobao.com
The only way to access the API is to get a cookie under the Taobao domain.
With IP access, the cookie is not
A problem encountered at work (cookie-related)