diff --git a/cmd/eksterd/main.go b/cmd/eksterd/main.go index 81d1901..26dba39 100644 --- a/cmd/eksterd/main.go +++ b/cmd/eksterd/main.go @@ -60,6 +60,11 @@ func newPool(addr string) *redis.Pool { func WithAuth(handler http.Handler, b *memoryBackend) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method == http.MethodOptions { + handler.ServeHTTP(w, r) + return + } + authorization := r.Header.Get("Authorization") var token auth.TokenResponse