Replies: 1 comment
-
I see no problems with changing the content-type there, current value seems to be incorrect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm not sure whether it's relevant here cause it's related to an old FireFox bug.
When
LogoutHandler()
is called under the hood it callsp.JwtService.Reset(w)
, that "expires" cookies but doesn't set header's content type.Firefox parses the response as XML and finding no root element, shows the next error message:
"XML Parsing Error: no root element found"
Setting content-type header in
Reset()
fixes the error:w.Header().Set("Content-Type", "application/json; charset=utf-8")
But I'm not sure whether it's a good idea to set content type here.
Here is a discussion on stackoverflow.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions