Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Fix logout bug on Safari #787

Merged
merged 1 commit into from
Jan 7, 2017
Merged

Conversation

mikestone14
Copy link
Contributor

I was checking out #786 on Safari and tried to log out as the admin user and log in as the regular user. I was not able to log out on Safari but Chrome worked fine. Looking into it I discovered that we're not correctly sending over a JSON body for the logout request (or any similar post requests with an empty body). This PR conversation the default empty body object to JSON to make the request valid.

@marpaia
Copy link
Contributor

marpaia commented Jan 7, 2017

How did you figure out that this was the problem?

@marpaia marpaia merged commit 18ba071 into kolide:master Jan 7, 2017
@mikestone14
Copy link
Contributor Author

@marpaia I discovered this bug trying to log out on Safari and noticed the console error was that there was a unsupported BodyInit type. Googling around I stumbled across this issue and realized we were not sending JSON as the default parameters although the request headers specify JSON.

@mikestone14 mikestone14 deleted the safari-logout-bug branch February 10, 2017 15:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants