Working cross domain too

This commit is contained in:
bel
2019-10-20 17:13:00 -06:00
parent b1247f8733
commit a0bf41e04e
4 changed files with 95 additions and 33 deletions

View File

@@ -13,10 +13,11 @@ import (
)
func (s *Server) usersLog(w http.ResponseWriter, r *http.Request) {
q := r.URL.Query()
fmt.Fprintln(w, `
<html>
<body>
<form method="post" action="/authorize">
<form method="post" action="/authorize?`+q.Encode()+`">
<input type="text" name="username"></input>
<input type="submit"></input>
</form>