LinkedIn OAuth redirect login returning “No 'Access-Control-Allow-Origin' header is present on the requested resource” error

后端 未结 2 2033
天涯浪人
天涯浪人 2020-12-11 02:12

I\'m currently implementing OAuth login with LinkedIn in my React and Play app and am running into a CORS error when trying to redirect to the authorization page in my dev e

2条回答
  •  醉话见心
    2020-12-11 02:31

    What could be done is:

    window.location.href='http://localhost:9000/auth/linkedin'
    

    The urlEndPoint could be directly to linkedIn's API or a back-end service which makes the call to linkedIn's API.

提交回复
热议问题