remove duplicated CORS middleware

This commit is contained in:
Kory Prince 2023-11-13 18:10:15 -06:00
parent 2a038f8746
commit cd3cb17b2c

View file

@ -624,6 +624,6 @@ func intercept(i IssuerFromRequest, interceptors ...HttpInterceptor) func(handle
for i := len(interceptors) - 1; i >= 0; i-- { for i := len(interceptors) - 1; i >= 0; i-- {
handler = interceptors[i](handler) handler = interceptors[i](handler)
} }
return cors.New(defaultCORSOptions).Handler(issuerInterceptor.Handler(handler)) return issuerInterceptor.Handler(handler)
} }
} }