Ensure credentials are included in RSVP request

This commit is contained in:
2017-02-13 13:13:28 +00:00
parent f5cf846259
commit 56a6e2df30

View File

@@ -48,8 +48,10 @@ class RsvpButton extends React.Component {
}
validateRsvp = () => {
fetch(`rsvp/${this.rsvpInput.value}`)
.then(data => {
fetch(`rsvp/${this.rsvpInput.value}`, {
method: 'get',
credentials: 'include',
}).then(data => {
if (data.status === 200) {
location.href = data.url;
} else {