Skip to content

LanguageSwitcher does not switch language (Interactive Server / Interactive Webassembly) because of httpOnly culture cookie. #4703

Answered by sbwalker
maurocavallin asked this question in General
Discussion options

You must be logged in to vote

If a cookie has HttpOnly disabled it does not mean your site is vulnerable to attack. HttpOnly is only an extra layer of defense (for those browsers that actually support it). XSS requires an initial attack vector - the injection of executable JavaScript into a page. If your site allows a malicious user to inject JavaScript then they could include a script which can read the value of cookies. HttpOnly prevents scripts from reading cookie values. So it's useful as an additional safeguard for authentication cookies or cookies which store other confidential information. But if your site allows malicious scripts to be injected then you obviously have much bigger problems to worry about than j…

Replies: 4 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
14 replies
@thabaum
Comment options

@thabaum
Comment options

@thabaum
Comment options

@maurocavallin
Comment options

@thabaum
Comment options

Comment options

You must be logged in to vote
7 replies
@thabaum
Comment options

@sbwalker
Comment options

@thabaum
Comment options

@sbwalker
Comment options

Answer selected by maurocavallin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants