Learn about XSS (cross-site scripting) protection and how Corbado’s session management uses it.
httpOnly
flag on the refresh-token cookie, thereby preventing it from being accessed by JavaScript.
However, the session-token cookie does not have the httpOnly flag. This is because, in order to enable Corbado to work with pure JavaScript applications and integrate with external services, the cookie needs to be accessible from JavaScript. Nevertheless, the short lifespan of the cookie helps to minimize its impact.