mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 20:11:56 -08:00
Expose E-Tag, Accept-Patch and Link headers for cross-origin WHIP/WHEP requests (#1841)
This commit is contained in:
parent
26c0e513de
commit
79cbf622a2
1 changed files with 1 additions and 0 deletions
|
|
@ -305,6 +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("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…
Add table
Add a link
Reference in a new issue