Hi, I'm trying to create a web application that us...
# support-questions-legacy
d
Hi, I'm trying to create a web application that use SuperTokens. I've already implemented the otp method and it works fine with both mail and sms. I want to try to implement the magic link method, but when i click on the link sent me by mail, it opens another browser window with the right path. However it gives me this error: Access to fetch at 'http://localhost:8000/signinup/code/consume' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. And in the log of the server I've got: INFO: 127.0.0.1:63404 - "POST /signinup/code/consume HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application I've tried to call the handleMagicLinkClicked when pressing a button because I didn't understand how to use that function. I've also tried to call the function HasInitialMagicLinkBeenSent, but the result of that function is "false" but I'm sure the link has been sent. What can I do to resolve this problems?
5 Views