Yann Stepienik 2 anni fa
parent
commit
229a14d4a2
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      package.json
  2. 1 1
      src/httpServer.go

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "cosmos-server",
-  "version": "0.3.0-unstable4",
+  "version": "0.3.0-unstable5",
   "description": "",
   "main": "test-server.js",
   "bugs": {

+ 1 - 1
src/httpServer.go

@@ -229,7 +229,7 @@ func StartServer() {
 		},
 	))
 	srapi.Use(utils.MiddlewareTimeout(20 * time.Second))
-	srapi.Use(utils.BlockPostWithoutReferer)
+	// srapi.Use(utils.BlockPostWithoutReferer)
 	srapi.Use(proxy.BotDetectionMiddleware)
 	srapi.Use(httprate.Limit(60, 1*time.Minute, 
 		httprate.WithKeyFuncs(httprate.KeyByIP),