strict-transport-security

Cookies are not accessible within JavaScript (and the dev tools) but sent along with XHR request (no httponly used)

时光怂恿深爱的人放手 提交于 2020-08-24 05:44:32
问题 I'm using both a front-end and a back-end application on a different domain with a session-based authorization. I have setup a working CORS configuration, which works as expected on localhost (e.g. from port :9000 to port :8080 ). As soon as I deploy the applications on secure domains (both domains only allow HTTPS), the CSRF cookie is not accessible anymore within JavaScript, leading to an incorrect follow-up request of the front-end (missing the CSRF header). The cookie is set by the back