Skip to content

Commit 053625a

Browse files
authored
Remove raw CORS headers (#857)
#855 missed a case where CORS headers are explicitly set. This remaining code results in multiple copies of the `Access-Control-Allow-Origin` header, which is not valid.
1 parent ed6b1e3 commit 053625a

File tree

1 file changed

+0
-2
lines changed
  • internal/app/referenceserver

1 file changed

+0
-2
lines changed

internal/app/referenceserver/impl.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,6 @@ func makeRawGRPCWebResponse(err *connect.Error, contentType string, headers, tra
619619
Headers: append(
620620
headers,
621621
&conformancev1.Header{Name: "Content-Type", Value: []string{contentType}},
622-
&conformancev1.Header{Name: "Access-Control-Allow-Origin", Value: []string{"*"}},
623-
&conformancev1.Header{Name: "Access-Control-Expose-Headers", Value: []string{"*"}},
624622
),
625623
Body: &conformancev1.RawHTTPResponse_Stream{
626624
Stream: &conformancev1.StreamContents{

0 commit comments

Comments
 (0)