Nginx reverse proxy cookie set cannot be obtained!

external network access domain name: https://api.baidu.com
internal network domain name: http://local.baidu.com this domain name is inaccessible outside the network! It is 127.0.0.1

pointed to by a private network address.

I use nginx reverse proxy to access the intranet and set up a cookie, domain in the same domain / .baidu.com. I can test it in the local browser! However, the cookie is set successfully when accessing the public network https://api.baidu.com. Then, when you request through the www.baidu.com API, you actually go to the private network local.baidu.com, but if you can"t get the cookie in the local.baidu.com, you jump to api.baidu.com for authorization. The result is that the cookie is always looped to check for authorization. But it just didn"t work! How to deal with it like this!

clipboard.png
simply draw a picture! That"s how it works!

Feb.26,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e80230-ab4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e80230-ab4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?