How to correct set the cookies for a subdomain in JSP?

前端 未结 1 1018
北海茫月
北海茫月 2021-01-21 16:07

I have the following setup:

  • all the requests are https (I will just omit this in the following description)
  • 3 docker servers: localhost:8090, localhost:80
相关标签:
1条回答
  • 2021-01-21 16:42

    based on this (https://curl.haxx.se/rfc/cookie_spec.html) the domain should contain at least 2 dots so the answer is to use other alias for localhost to simulate my subdomains. Something like: *.example.com

    After changing the domain all worked as anticipated.

    0 讨论(0)
提交回复
热议问题