当我尝试使用Linkedin Javascript API验证用户并根据用户登录状态触发ajax函数时,我收到此错误....
XMLHttpRequest cannot load https://www.linkedin.com/uas/oauth/authenticate?oauth_token=75--7530050c-c992-4791-95f0-5c43386a147d. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.x.xx' is therefore not allowed access.
测试案例:
当我点击下面的按钮时,触发了函数调用
IN.User.authorize(function(){ call my callback() here if logged-in });
LinkedIn Popup来了,我能够登录但在此之后我遇到了上述错误。我在我的本地机器上尝试相同,因此网站上有我的IP地址。
任何帮助都将受到高度赞赏,因为我想通过LinkedIn Javascript API对用户进行身份验证,并且在成功时我想执行ajax,我希望通过该ajax向用户发送消息。