Browse Source

Fix:remove response header

CareyWong 5 years ago
parent
commit
cdeac8fa50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -124,7 +124,7 @@ func main() {
 		}
 		res.ShortUrl = protocol + *domain + "/" + shortKey
 
-		context.Header("Access-Control-Allow-Origin", "*")
+		// context.Header("Access-Control-Allow-Origin", "*")
 		context.JSON(200, *res)
 	})