Browse Source

fix usage of Access-Control-Expose-Headers (#1847)

pull/1846/head
Alessandro Ros 3 years ago committed by GitHub
parent
commit
766260f8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/core/webrtc_http_server.go

2
internal/core/webrtc_http_server.go

@ -305,7 +305,7 @@ func (s *webRTCHTTPServer) onRequest(ctx *gin.Context) { @@ -305,7 +305,7 @@ func (s *webRTCHTTPServer) onRequest(ctx *gin.Context) {
}
ctx.Writer.Header().Set("Content-Type", "application/sdp")
ctx.Writer.Header().Set("Access-Control-Expose-Headers", "E-Tag", "Accept-Patch", "Link")
ctx.Writer.Header().Set("Access-Control-Expose-Headers", "E-Tag, Accept-Patch, Link")
ctx.Writer.Header().Set("E-Tag", res.sx.secret.String())
ctx.Writer.Header().Set("Accept-Patch", "application/trickle-ice-sdpfrag")
ctx.Writer.Header()["Link"] = iceServersToLinkHeader(s.parent.genICEServers())

Loading…
Cancel
Save