CORS error persists in oAuth even after setting header

Thank you @BarryCarlyon and @Dist. I was able to do this.
As @Dist said I just used anchor tag and set href equal to the authorisation link.
I do have one doubt though, as I was using React and directly using anchor tag results in the full page reload of the app which is I guess not a good thing when developing applications as the state of the application will be lost after the reload. So I do have to research on that.
Issue is resolved though :slight_smile: