This commit is contained in:
crusader 2017-08-31 16:34:43 +09:00
parent 044bb80933
commit 2a40c39f08

View File

@ -10,7 +10,7 @@ import (
func main() { func main() {
ctx := context.Background() ctx := context.Background()
c := cors_fasthttp.New(ctx, cors_fasthttp.CorsOptions{}) c := cors_fasthttp.AllowAll(ctx)
fasthttp.ListenAndServe(":8080", c.Handler(Handler)) fasthttp.ListenAndServe(":8080", c.Handler(Handler))
} }