You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
......
void main() {
// use your own Client ID from the API Console here
final auth = new GoogleOAuth2(
"THIS IS MY CLIENT ID",
["https://www.googleapis.com/auth/books", "https://www.google.com/m8/feeds" ]);
......
}
Future _oauthReady(Token token) {
......
//final url = "https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC";
final url = "https://www.google.com/m8/feeds/contacts/default/full";
......
}
The text was updated successfully, but these errors were encountered:
I don't have the bandwidth to track this issue at the moment. The Access-Control-Allow-Origin are tricky, I've not been able to figure out why some APIs throw this error and others do not. Maybe something like http://progrium.com/localtunnel/ would aid in development?
I have create my client id (include Books and Contacts API, InitPoint = http://127.0.0.1:3030), and modify "oauth_example.dart" as the following code. But I got error message:
Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
https://www.google.com/m8/feeds/contacts/default/full
Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:3030' is therefore not allowed access.
https://www.google.com/m8/feeds/contacts/default/full
XMLHttpRequest cannot load https://www.google.com/m8/feeds/contacts/default/full. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:3030' is therefore not allowed access.
The text was updated successfully, but these errors were encountered: