Skip to content

delete verb doesn't work #20

Description

@Zane-XY

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions