Commit 6e4d480ff8f909a094daa5487d9e974ff1f283b9
1 parent
dee3be1d
Exists in
master
提交
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
... | ... | @@ -770,16 +770,16 @@ func GetUserData(w http.ResponseWriter, r *http.Request) { |
770 | 770 | } |
771 | 771 | |
772 | 772 | func UserLogin(w http.ResponseWriter, r *http.Request) { |
773 | - w.Header().Set("Access-Control-Allow-Origin", "*") //允许访问所有域 | |
774 | - w.Header().Set("Content-Type", "application/json") | |
775 | - /*logger.Info("%%%%%%%%%%%%%%%%path=%v", *r.URL) | |
773 | + //w.Header().Set("Access-Control-Allow-Origin", "*") //允许访问所有域 | |
774 | + //w.Header().Set("Content-Type", "application/json") | |
775 | + logger.Info("%%%%%%%%%%%%%%%%path=%v", *r.URL) | |
776 | 776 | for k, v := range r.Header { |
777 | 777 | logger.Info("*********************key=%v,value=%v", k, v) |
778 | 778 | } |
779 | 779 | |
780 | 780 | w.Header().Add("Access-Control-Allow-Headers", "") |
781 | 781 | w.Header().Set("Access-Control-Allow-Headers", "Authorization, Content-Length, X-CSRF-Token, Token,session,X_Requested_With,Accept, Origin, Host, Connection, Accept-Encoding, Accept-Language,DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Pragma") |
782 | - */ | |
782 | + | |
783 | 783 | Uuid := 0 |
784 | 784 | Token := "" |
785 | 785 | if len(r.Header) > 0 { | ... | ... |