Trying to delete an event from Google Calendar:
GoogleApi.delete('calendar/v3/calendars/primary/events/'.concat(evtId), {
params: {
sendNotifications: true
}
}, callback);
This gives,
DELETE https://www.googleapis.com/calendar/v3/calendars/primary/events/ttgn7mbe0pntuk2j63jk1cooe8
localhost/:1 XMLHttpRequest cannot load https://www.googleapis.com/calendar/v3/calendars/primary/events/ttgn7mbe0pntuk2j63jk1cooe8. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 400.
The insert call is fine,
GoogleApi.post('calendar/v3/calendars/primary/events', {
params: {
sendNotifications: true
},
data: evt
}, callback);
I don't know why the post doesn't throw a CORS error, but a delete does.
Trying to delete an event from Google Calendar:
This gives,
The insert call is fine,
I don't know why the post doesn't throw a CORS error, but a delete does.