File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -539,20 +539,20 @@ func New(options *Options) *API {
539
539
httpmw .ExtractRealIP (api .RealIPConfig ),
540
540
httpmw .Logger (api .Logger ),
541
541
prometheusMW ,
542
- // SubdomainAppMW checks if the first subdomain is a valid app URL. If
543
- // it is, it will serve that application.
544
- //
545
- // Workspace apps do their own auth and CORS and must be BEFORE the auth
546
- // and CORS middleware.
547
- api .workspaceAppServer .HandleSubdomain (apiRateLimiter ),
548
- cors ,
549
542
// Build-Version is helpful for debugging.
550
543
func (next http.Handler ) http.Handler {
551
544
return http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
552
545
w .Header ().Add ("X-Coder-Build-Version" , buildinfo .Version ())
553
546
next .ServeHTTP (w , r )
554
547
})
555
548
},
549
+ // SubdomainAppMW checks if the first subdomain is a valid app URL. If
550
+ // it is, it will serve that application.
551
+ //
552
+ // Workspace apps do their own auth and CORS and must be BEFORE the auth
553
+ // and CORS middleware.
554
+ api .workspaceAppServer .HandleSubdomain (apiRateLimiter ),
555
+ cors ,
556
556
// This header stops a browser from trying to MIME-sniff the content type and
557
557
// forces it to stick with the declared content-type. This is the only valid
558
558
// value for this header.
You can’t perform that action at this time.
0 commit comments