Logging in with wrong credentials yields a WrongC...
# general
r
> Logging in with wrong credentials yields a WrongCredentialsException in the backend. This results in a CORS error in the frontend even though the CORSMiddleware is correctly configured. Even when I add a custom ErrorHandler to FastAPI and return a JSONResponse(200) I get the same CORS error in the frontend. Any ideas? This is where we send the JSON reponse for wrong credentials: https://github.com/supertokens/supertokens-fastapi/blob/fastapi-2.x/supertokens_fastapi/emailpassword/recipe.py#L129. What is the CORS error that you get?
8 Views