0

spring boot Set-Cookie header, but i can not see the cookie in Storage/Cookies, another way still can not see anything, but when i post an request, it will be send by browser automatically, my main domin is m.example.com, my request domain is api.example, i also set withCredentials = true in axios, i also find some answers in stackoverflow, but it can not solve my problem

document.cookie() // can not read JSESSIONID

set-cookie-header-has-no-effect-about-using-cookies-cors-including-for-local

CORS

huahaitao
  • 26
  • 4
  • Cookie is not a function. It is an attribute under document object. Try with document.cookie . For your reference https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie – abhi3232 Oct 27 '18 at 06:04
  • cookie setting httponly, it can not be printed by document.cookie – huahaitao Oct 28 '18 at 07:14

0 Answers0