Google calender api with cross domain access error

2 views
Skip to first unread message

Zhang Bruce via StackOverflow

unread,
Oct 4, 2015, 9:06:08 PM10/4/15
to google-appengin...@googlegroups.com

I'm doing a calendar service app where I call google calendar api from my java servlet which is deployed to app engine.

if I test it with my own google app engine account log in, my app works fine with no problem. However if I use some other google account it gives me cross origin error I wanted to solve it by adding resp.setHeader("Access-Control-Allow-Origin", "*"); to every response I can find, but it just don't work. it will fail at the oauth call.

I also downloaded cors plugin to work around it, but it will get through the oauth only, still wont work for other calls.

Anyone have some ideas?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/32939972/google-calender-api-with-cross-domain-access-error
Reply all
Reply to author
Forward
0 new messages