mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-10 04:11:59 -08:00
webrtc: add Location header to CORS-allowed headers (#2453)
This commit is contained in:
parent
4ba2dc1b34
commit
215f88e2dd
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ func (s *webRTCHTTPServer) onRequest(ctx *gin.Context) {
|
|||
}
|
||||
|
||||
ctx.Writer.Header().Set("Content-Type", "application/sdp")
|
||||
ctx.Writer.Header().Set("Access-Control-Expose-Headers", "ETag, Accept-Patch, Link")
|
||||
ctx.Writer.Header().Set("Access-Control-Expose-Headers", "ETag, Accept-Patch, Link, Location")
|
||||
ctx.Writer.Header().Set("ETag", res.sx.secret.String())
|
||||
ctx.Writer.Header().Set("ID", res.sx.uuid.String())
|
||||
ctx.Writer.Header().Set("Accept-Patch", "application/trickle-ice-sdpfrag")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue