Skip to content

Commit

Permalink
SLCORE-818 Allow baggage and sentry-trace headers to avoid cors errors
Browse files Browse the repository at this point in the history
  • Loading branch information
serhat-yenican-sonarsource committed May 27, 2024
1 parent e0ab5b0 commit 07134ca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void handle(ClassicHttpRequest request, HttpFilterChain.ResponseTrigger r
}
response.addHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
response.addHeader("Access-Control-Allow-Private-Network", true);
response.addHeader("Access-Control-Allow-Headers", "baggage, sentry-trace");
responseTrigger.submitResponse(response);
} else {
chain.proceed(request, new HttpFilterChain.ResponseTrigger() {
Expand Down

0 comments on commit 07134ca

Please sign in to comment.