Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diagnostics: updated serving ui port (#11740) #11916

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

dvovk
Copy link
Member

@dvovk dvovk commented Sep 7, 2024

  • Changed UI serving port to 5137 as 6060 is busy with diag API
  • Refactored request headers to be set in middleware

- Changed UI serving port to 5137 as 6060 is busy with diag API
- Refactored request headers to be set in middleware
@dvovk dvovk requested a review from VBulikov September 7, 2024 09:18
@@ -114,6 +114,18 @@ func SetupMiddleMuxHandler(mux *http.ServeMux, middleMux *http.ServeMux, path st
middleMux.HandleFunc(path+"/", func(w http.ResponseWriter, r *http.Request) {
r.URL.Path = strings.TrimPrefix(r.URL.Path, path)
r.URL.RawPath = strings.TrimPrefix(r.URL.RawPath, path)

// Set CORS headers
w.Header().Set("Access-Control-Allow-Origin", "*")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • see also newCorsHandler

@AskAlexSharov AskAlexSharov enabled auto-merge (squash) September 9, 2024 01:52
@AskAlexSharov AskAlexSharov merged commit a50da8e into release/2.60 Sep 9, 2024
6 checks passed
@AskAlexSharov AskAlexSharov deleted the CH11740 branch September 9, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants