DarthSim 6 년 전
부모
커밋
0346b6b45e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -96,7 +96,7 @@ func shutdownServer(s *fasthttp.Server) {
 func writeCORS(rctx *fasthttp.RequestCtx) {
 	if len(conf.AllowOrigin) > 0 {
 		rctx.Response.Header.Set("Access-Control-Allow-Origin", conf.AllowOrigin)
-		rctx.Response.Header.Set("Access-Control-Allow-Methods", "GET, OPTIONs")
+		rctx.Response.Header.Set("Access-Control-Allow-Methods", "GET, OPTIONS")
 	}
 }