good morning!!!!

Skip to content
Snippets Groups Projects
Commit ae341b31 authored by Jonathan Brown's avatar Jonathan Brown
Browse files

rpc: set CORS Max-Age to reduce preflight OPTIONS requests

parent ab7adb00
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,7 @@ func newCorsHandler(srv *Server, corsString string) http.Handler {
c := cors.New(cors.Options{
AllowedOrigins: allowedOrigins,
AllowedMethods: []string{"POST", "GET"},
MaxAge: 600,
})
return c.Handler(srv)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment