Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete verb doesn't work #20

Open
Zane-XY opened this issue Jul 22, 2015 · 1 comment
Open

delete verb doesn't work #20

Zane-XY opened this issue Jul 22, 2015 · 1 comment

Comments

@Zane-XY
Copy link

Zane-XY commented Jul 22, 2015

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.

@tmeasday
Copy link
Member

We don't do anything to deal with CORS in this library AFAIK. You'll have to dig deeper I guess...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants