stored client-side peer info to ServerConnPeer when PEER_STARTED is received

This commit is contained in:
2025-02-17 00:52:29 +09:00
parent f2536a0acc
commit be7f4f4da5
4 changed files with 23 additions and 7 deletions

View File

@ -1267,6 +1267,7 @@ func (c *Client) wrap_http_handler(handler ClientHttpHandler) http.Handler {
if handler.Cors(req) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Headers", "*")
w.Header().Set("Access-Control-Allow-Methods", "*")
}
if req.Method == http.MethodOptions {
status_code = WriteEmptyRespHeader(w, http.StatusOK)