Ensure credentials are included in RSVP request
This commit is contained in:
@@ -48,8 +48,10 @@ class RsvpButton extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
validateRsvp = () => {
|
validateRsvp = () => {
|
||||||
fetch(`rsvp/${this.rsvpInput.value}`)
|
fetch(`rsvp/${this.rsvpInput.value}`, {
|
||||||
.then(data => {
|
method: 'get',
|
||||||
|
credentials: 'include',
|
||||||
|
}).then(data => {
|
||||||
if (data.status === 200) {
|
if (data.status === 200) {
|
||||||
location.href = data.url;
|
location.href = data.url;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user