Commit 92a729e9 authored by Chris Garrity's avatar Chris Garrity

Set language cookie domain to allow for cross-domain cookies

Add leading `.` to the current hostname for the language cookie domain.
parent 10f2a098
......@@ -21,7 +21,7 @@ class LanguageChooser extends React.Component {
]);
}
handleSetLanguage (name, value) {
jar.set('scratchlanguage', value);
jar.set('scratchlanguage', value, {domain: `.${window.location.hostname}`});
window.location.reload();
}
render () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment