0

I am getting this error when i try to use Linkedin Javascript API to validate user and the trigger a ajax function based on user login status....

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.

TEST CASE:

When i click on a button below function call is trigged

IN.User.authorize(function(){ call my callback() here if logged-in });

The LinkedIn Popup comes and i am able to login to but after that i am getting above error. I am trying the same in my local-machine and hence the website has my ip address.

Anyone help will be highly appreciated as i want to authenticate a user via LinkedIn Javascript API and on success i want to perform a ajax through which i want to send a message to a user.

George Joffin Joy
  • 259
  • 1
  • 6
  • 20

0 Answers0