search

Home  >  Q&A  >  body text

java - set-cookie响应头内容无法写入cookie?

大家讲道理大家讲道理2898 days ago262

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:42:09

    Cookies follow the same-origin principle by default, otherwise it will cause security issues. However, you should be able to use the Cookie.setDomain(String domain) method to make it cross-domain. Please give it a try

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:42:09

    How did the original poster solve this problem in the end?

    reply
    0
  • Cancelreply