Skip to content

Commit 5b5e766

Browse files
committed
move cors mw after app handle subdomain
Signed-off-by: Callum Styan <callumstyan@gmail.com>
1 parent e75fb3b commit 5b5e766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/wsproxy/wsproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,11 @@ func New(ctx context.Context, opts *Options) (*Server, error) {
339339
httpmw.ExtractRealIP(s.Options.RealIPConfig),
340340
loggermw.Logger(s.Logger),
341341
prometheusMW,
342-
corsMW,
343342

344343
// HandleSubdomain is a middleware that handles all requests to the
345344
// subdomain-based workspace apps.
346345
s.AppServer.HandleSubdomain(apiRateLimiter),
346+
corsMW,
347347
// Build-Version is helpful for debugging.
348348
func(next http.Handler) http.Handler {
349349
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy