From 43109908015fb8394e8f4f8ed77b6b75a439c4b2 Mon Sep 17 00:00:00 2001 From: leu Date: Mon, 10 Jun 2024 15:10:32 +0800 Subject: [PATCH] update --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index cda572b..335f306 100644 --- a/main.go +++ b/main.go @@ -86,7 +86,7 @@ func main() { } -fun http_write(w http.ResponseWriter, res_data []byte){ +func http_write(w http.ResponseWriter, res_data []byte){ w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, UPDATE") w.Header().Set("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization")