Ensure credentials are included in RSVP request
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user