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

Broken: use of CORS #2

Open
mebibou opened this issue Sep 25, 2015 · 0 comments
Open

Broken: use of CORS #2

mebibou opened this issue Sep 25, 2015 · 0 comments

Comments

@mebibou
Copy link

mebibou commented Sep 25, 2015

A few months ago, the library was working fine to retrieve contacts. Now when trying, I have the following error:

OPTIONS https://www.google.com/m8/feeds/contacts/default/full?access_token=ya29.-QF…qvtibhiQmYUwDJl_...&alt=json&max-results=3000

XMLHttpRequest cannot load https://www.google.com/m8/feeds/contacts/default/full?access_token=ya29.-QF…qvtibhiQmYUwDJl_T...&alt=json&max-results=3000. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access. The response had HTTP status code 405.

google-auth.min.js:1 error retrieving Google contacts

Note: by using jsonp, this erreur doesn't appear. Changing line 221 in google-auth.js like this seems to fix the issue:

$http.jsonp(url + '&callback=JSON_CALLBACK')
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

1 participant