i have Web app that has spring boot on the backend and on the front I have react. On my backend I have set up oauth2 and everything is working properly(i mean i get desired data about user, validate the token on https://oauth2.googleapis.com/tokeninfo). The problem is when I am doing axios request from frontend to backend i'm getting and error
localhost:8080/farm im trying to reach with axios. Without oauth2.0 enabled i didnt have any problems with reaching this endpoint.
I was trying to add "Access-Control-Allow-Origin" to the axios request but it didnt solve the problem. I was also trying to add the header after successful login on the backend when i redirect to localhost:3000