I am currently writing the sign up and login methods for a side project I am working on and whenever I get my backend to redirect the user I receive a 405 error
{"message":"Method Not Allowed"}
I am curious of why this is happening and how could I fix it? Here is my code, I am using the echo web framework for go.
Within both methods, if all goes well I call the method c.Redirect(http.StatusOK, "path") (where c is the echo context package)
Within my signup.html file I have this simple form submission:
<form method="post">
<input type="text" name="username" placeholder="username">
<input type="text" name="password" placeholder="password">
<input type="submit">
</form>
Yet I continue to receive the error.
Quite straight forward, all help is appreciated!
Aucun commentaire:
Enregistrer un commentaire