I am trying to build an application for my users so that they can log in to my website using Twitter and they can manage their Twitter account from the website itself.
I have created a full 3-legged authentication flow and other managing API calls at my server (some server url) when I call authentication API from the browser it works fine.
But now I want to use a webpage for my users so that they can log in and manage their accounts from that website (a website URL different that server url). So I am trying to create a flow like this:
- User will click to log in on my website.
- Website will send a login request to my server with the user credentials so that I can verify the user and its request at my server first.
- Then the server will redirect the user to the authentication page of Twitter.
But this is not working, I am getting a CORS error in the console, I attached a screenshot for reference.
Please help me how I can resolve this issue.
Thank you.
What code / library are you working with? More commonly, CORS errors happen when you’re making calls to the twitter API from a browser, not a server.
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.