Forum Discussion
CORS error occuring after accessing linkedin share api through modern script on SharePoint Online
Not sure exactly what you're trying to do, but this doesn't look like the correct way to access the LinkedIn APIs. Where did you get this example from?
Here is the developer documentation for LinkedIn - https://docs.microsoft.com/en-us/linkedin/consumer/
We are using the webpart with No Javascript language now. When we are trying to connect the Share web api of the LinkedIn. It is giving the CORS error. I'm also attached the No Javascript typescript file for you info. API call is in the LoadData() function.
Kindly provide the help asap.
- Toby StathamAug 06, 2019Brass Contributor
nilesh1011 Have you added the tenant URL as an SDK in your LinkedIn application as detailed here - https://developer.linkedin.com/docs/getting-started-js-sdk
- nilesh1011Aug 06, 2019Copper Contributor
Toby StathamWhen I click url shared by you https://developer.linkedin.com/docs/getting-started-js-sdk . It shows "The JavaScript SDK is not currently supported."
- Toby StathamAug 06, 2019Brass Contributor
nilesh1011 I wasn't referring to the SDK, just the section you need to add your tenant URL to.
It's slightly changed, but you need to add your tenant domain to the Widgets section in your LinkedIn app settings.