Skip to content

fix: strip query params from URI and remove X-Requested-With header#141

Open
mdspinali wants to merge 1 commit intoswaggo:masterfrom
Resume-Matchmaker:fix-query-params-and-cors
Open

fix: strip query params from URI and remove X-Requested-With header#141
mdspinali wants to merge 1 commit intoswaggo:masterfrom
Resume-Matchmaker:fix-query-params-and-cors

Conversation

@mdspinali
Copy link

@mdspinali mdspinali commented Jan 20, 2026

Problem

  1. Swagger UI breaks when accessed with query parameters because the regex matches against the full RequestURI including the query string
  2. X-Requested-With header can cause CORS preflight issues

Proposed Solution

  • Strip query parameters from RequestURI before regex matching in both EchoWrapHandler and EchoWrapHandlerV3
  • Add requestInterceptor to swagger UI config to remove X-Requested-With headers

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.

1 participant