shashank0959
01/25/2024, 9:14 AMconst authUrl =
await getThirdPartyAuthorisationURLWithQueryParamsAndSetState({
thirdPartyId: "google",
frontendRedirectURI: "http://localhost:3000/auth/callback/google",
});
and I have already setup a page on
/auth/callback/:provider
but on click it is giving me cors error,
Access to fetch at 'https://f5fe-27-62-197-141.ngrok-free.app/auth/authorisationurl?thirdPartyId=google&redirectURIOnProviderDashboard=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fcallback%2Fgoogle&clientType=web' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
SocialLogin.js:13 GET https://f5fe-27-62-197-141.ngrok-free.app/auth/authorisationurl?thirdPartyId=google&redirectURIOnProviderDashboard=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fcallback%2Fgoogle&clientType=web net::ERR_FAILED 200 (OK)
can you help here please,
also is there any working react-social login example availble, that will help me