Forum Discussion
CORS error occuring after accessing linkedin share api through modern script on SharePoint Online
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.
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.
- nilesh1011Aug 07, 2019Copper Contributor
Toby Statham Yes! I have added tenant domain to the Widgets section in my LinkedIn app settings. But still showing cors problem.