- commit
- 229a4b6
- parent
- ea3dc03
- author
- Eric Bower
- date
- 2025-01-23 10:00:41 -0500 EST
chore(pgs): rm comments
1 files changed,
+0,
-10
+0,
-10
1@@ -539,16 +539,6 @@ func (web *WebRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
2 router = web.UserRouter
3 }
4
5- // enable cors
6- // TODO: I don't think we want this for pgs as a default
7- // users can enable cors headers using `_headers` file
8- /* if r.Method == "OPTIONS" {
9- shared.CorsHeaders(w.Header())
10- w.WriteHeader(http.StatusOK)
11- return
12- }
13- shared.CorsHeaders(w.Header()) */
14-
15 ctx := r.Context()
16 ctx = context.WithValue(ctx, shared.CtxSubdomainKey{}, subdomain)
17 router.ServeHTTP(w, r.WithContext(ctx))