Now the server has set a cookie that can only be accessed by a specific domain name. The domain field is set, for example (123.207.70.98), and httpOnly is true
When I debug locally, it is localhost and I cannot access the cookies set on the server. Can this problem be solved through nginx?
The domain name is not configured. I want to configure it as IP. How to do it?
The previous idea was that the domain name pointed to 123.207.70.98, and then local hosts hijacked the domain name to localhost or 127.0.0.1
Then access the domain name locally. Can you access the response cookie?
高洛峰2017-07-03 11:45:15
You can modify the local hosts to change the domain name corresponding to nginx to 127.0.0.1, so that you can use the domain name to access the local system